Forgot password
 Register account
View 3846|Reply 2

请教对字母的范围说明要怎么写合适?

[Copy link]

414

Threads

1641

Posts

15

Reputation

Show all posts

abababa posted 2021-2-25 20:57 |Read mode
如题,例如经常打一些像$f(x)g(x),\frac{f(x)}{g(x)}(g(x)\neq 0)$,或者$x=\frac{1}{n}(n=1,2,\cdots,10)$这样的,那个括号里面就是对字母范围的说明,但有时觉得放在括号里像乘法一样,不太清楚,这时我就选择拿出去,在后面说一句“其中$g(x)\neq0$”,“其中$n=1,2,\cdots,10$”这样,但有时又觉得这样罗嗦,因为紧跟着$x=\frac{1}{n}$后就要写“因此$nx=1$”,中间插一句说明范围的觉得不好。

3200

Threads

7827

Posts

52

Reputation

Show all posts

hbghlyj posted 2025-5-18 12:49
在 Mathematica 中,用 /; 表示条件,functions.wolfram.com 有很多例子:functions.wolfram.com/ElementaryFunctions/Sin/24/01/0001/\[
\prod_{k=1}^{n-1}\sin\!\Bigl(\frac{k\pi}{n}\Bigr)
=\frac{n}{2^{n-1}}\quad/;
\quad n\in\mathbb{N}^+
\]
Product[Sin[(k Pi)/n], {k, 1, n - 1}] == n/2^(n - 1) /; Element[n, Integers] && n > 0

673

Threads

110K

Posts

218

Reputation

Show all posts

kuing posted 2025-5-18 15:18
一般用括号就行了,根据语境不太会误认为乘法。

如果是中文文档就更不会了,因为在说明时是使用中文括号:

$f(x)g(x)$, $\frac{f(x)}{g(x)}$($g(x)\neq 0$):$f(x)g(x)$, $\frac{f(x)}{g(x)}$($g(x)\neq 0$)

括号明显不同,就会意识到这里进入了文本模式,而不是公式的一部分。

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-15 20:48 GMT+8

Powered by Discuz!

Processed in 0.012768 seconds, 22 queries