Skip to content

Commit

Permalink
Merge pull request #1216 from Mat-Ge/patch-typo
Browse files Browse the repository at this point in the history
Some typos
  • Loading branch information
sangwinc authored Jul 5, 2024
2 parents 8450e73 + 3c5b29a commit 1afbea5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/en/CAS/Numbers.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Optionally, depending on the question settings, you have
i: %i
j: %i

Sometimes you need to use \(e\), or other constants, as an abstract symbol not a number. The Maxima solution is to use the `kill()` command, but for security reasons users of STACK are not permitted to use this function. Instead use `stack_reset_vars(true)` in the question variables. This resets all the special constants defined by STACK so the symbols can be redefined in an individual STACK question. (On Maxima 5.42.1 (and possibly others) `stack_reset_vars(true)` also resets `ordergreat`, so if you need to use `stack_reset_vars(true)` it must be the first command the question variables. Since this has been fixed in Maxima 5.44.0, it was probably a bug in Maxima.)
Sometimes you need to use \(e\), or other constants, as an abstract symbol not a number. The Maxima solution is to use the `kill()` command, but for security reasons users of STACK are not permitted to use this function. Instead use `stack_reset_vars(true)` in the question variables. This resets all the special constants defined by STACK so the symbols can be redefined in an individual STACK question. (On Maxima 5.42.1 (and possibly others) `stack_reset_vars(true)` also resets `ordergreat`, so if you need to use `stack_reset_vars(true)` it must be the first command in the question variables. Since this has been fixed in Maxima 5.44.0, it was probably a bug in Maxima.)

If you want to change the display of the constant \(e\) you need to refer to the `%e%` value, e.g. `texput(%e, "\mathrm{e}");`.

Expand Down
2 changes: 1 addition & 1 deletion doc/en/CAS/Simplification.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ The first of these does not pull out a numerical denominator. The second does.

### Trig simplification ###

Maxima does have the ability to make assumptions, e.g. to assume that \(n\) is an integer and then simplify \(3\cos(n\pi/2)^2\) to \( \frac{3}{2}(1+(-1)^n)\). Assume the student's answer is `ans1` then then define the following feedback variables:
Maxima does have the ability to make assumptions, e.g. to assume that \(n\) is an integer and then simplify \(3\cos(n\pi/2)^2\) to \( \frac{3}{2}(1+(-1)^n)\). Assume the student's answer is `ans1` then define the following feedback variables:

declare(n,integer);
sans1:ev(trigrat(ans1),simp);
Expand Down
4 changes: 2 additions & 2 deletions doc/en/Developer/Security_map.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ for somewhat obvious reasons! Hence, we need to restrict the availability of ce
2. Teacher. Teacher's answers cannot contain these, but they are not a security risk. Usually these have side effects within the Maxima code, e.g. setting a global variable which might cause problems later/elsewhere.
3. Student. Student's expressions can only contain these.

Since STACK 4.3 the Maxima statement parser infrastruture uses a JSON file
describing all identifiers of functions, variables, constants, and operators
Since STACK 4.3 the Maxima statement parser infrastructure uses a JSON file
describing all identifiers of functions, variables, constants and operators
and features we attach to them. The catalogue is stored in

stack/cas/security-map.json
Expand Down

0 comments on commit 1afbea5

Please sign in to comment.