Skip to content

Commit 42a7ca9

Browse files
committed
Update docs
1 parent 5ee90ee commit 42a7ca9

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

docs/guide/README.adoc

+17-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
== General Rules
66

77
* A valid relation must be a <<bool-expr,Boolean-valued expression>> such as `y = sin(x)` or `sin(x) < cos(y)`.
8-
* Enter multiplication of `x` and `y` as `x y`, instead of `xy`.
8+
* Enter the product of `x` and `y` as `x y`, instead of `xy`.
99
** You don't need a space after a leading number of a term, or around parentheses.
1010
* Enter the sine of _x_ as `sin(x)`, instead of `sinx` or `sin x`.
1111
* Use parentheses to group a part of the relation like `1 / (x + 3)`.
12-
* Each point in Cartesian coordinates has infinitely many identities in polar coordinates. For example, (_x_, _y_) = (1, 0) is identical to (_r_, _θ_) = (1, 0), (1, 2π), (1, −2π), (1, 4π), …; (−1, π), (−1, −π), (−1, 3π), …
12+
* Each point in Cartesian coordinates has infinitely many representations in polar coordinates. For example, (_x_, _y_) = (1, 0) is identical to (_r_, _θ_) = (1, 0), (1, 2π), (1, −2π), (1, 4π), …; (−1, π), (−1, −π), (−1, 3π), …
1313
** So you may want to restrict the range of `r` or `θ` when plotting a polar equation such as `r = θ && 0 ≤ θ ≤ 2π`.
1414
* `t` can be used as a parameter for making a parametric relation such as `x = cos(t) && y = sin(t)` or `x = t cos(t) && y = t sin(t) && 0 ≤ t ≤ 2π`.
1515

@@ -82,6 +82,20 @@
8282

8383
|===
8484

85+
==== Parameter
86+
87+
[cols=",,", options="header"]
88+
|===
89+
|Input
90+
|Interpreted as
91+
|Notes
92+
93+
|`t`
94+
|_t_
95+
|
96+
97+
|===
98+
8599
=== Arithmetic
86100

87101
[cols=",,", options="header"]
@@ -146,7 +160,7 @@ Undefined for irrational numbers.
146160

147161
|`x^y`
148162
|_x_^_y_^
149-
|`^` is right-associative: `x\^y^z` is equivalent to `x\^(y^z)`.
163+
|`^` is right-associative; `x\^y^z` is equivalent to `x\^(y^z)`.
150164

151165
|`exp(x)`
152166
|e^_x_^

rust/src/parse.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ fn primary_expr(i: InputWithContext) -> ParseResult<Expr> {
170170
))(i)
171171
}
172172

173-
// ^ is right-associative: x^y^z is the same as x^(y^z).
173+
// ^ is right-associative; x^y^z is the same as x^(y^z).
174174
fn power_expr(i: InputWithContext) -> ParseResult<Expr> {
175175
let ctx = i.ctx;
176176

0 commit comments

Comments
 (0)