Compare two revisions of: Visualization Variables

... ... @@ -164,9 +164,9 @@ The points and the slider are then added to the canvas.
164 164 \number[editable]{n}{real}{-1}
165 165 \slider{n_s1}{n}{-5}{5}
166 166 \slider[1]{n_s2}{n}{-10, editable}{10, editable}
167 - \number{abs}{real}{abs(var(n))}
167 + \number{absn}{real}{absn(var(n))}
168 168 \point{p1}{real}{var(n),0}
169 - \point{p2}{real}{var(abs),0}
169 + \point{p2}{real}{var(absn),0}
170 170 \end{variables}
171 171
172 172 \label{n}{$n_1 =$}
... ... @@ -208,9 +208,9 @@ their colors, see <a href="Color-and-Plotting#adding-color-and-label-to-variable
208 208
209 209 ```LaTeX
210 210 \point[editable]{p0}{real}{0,0} % creates an editable point at 0,0
211 -\randint[Z]{x}{-3}{3}
212 -\randint[Z]{y}{-3}{3}
213 -\point[editable]{p1}{real}{var(x), var(y)} % creates an editable point with random default coordinate
211 +\randint[Z]{a}{-3}{3}
212 +\randint[Z]{b}{-3}{3}
213 +\point[editable]{p1}{real}{var(a), var(b)} % creates an editable point with random default coordinate
214 214 ```
215 215
216 216 <div class="alert green">You can extract the x and y coordinates of a point and use it as in *value* for other variables by using var(p1)[x] and var(p1)[y]</div>
217 217