Skip to content
Snippets Groups Projects
Unverified Commit 3c5b29a4 authored by Mat-Ge's avatar Mat-Ge Committed by GitHub
Browse files

Some typos

parent 214fe6a4
No related branches found
No related tags found
No related merge requests found
......@@ -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}");`.
......
......@@ -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);
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment