Merge pull request #102 from nyarly/ans-help

Help text for ans variable
This commit is contained in:
PaddiM8 2022-09-30 12:02:14 +02:00 committed by GitHub
commit e50d398195
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ Overview of features
Derivation (prime notation) and integration (eg. integral(a, b, x dx) Derivation (prime notation) and integration (eg. integral(a, b, x dx)
The value of an integral is estimated using Simpson's 3/8 rule, The value of an integral is estimated using Simpson's 3/8 rule,
while derivatives are estimated using the symmetric difference while derivatives are estimated using the symmetric difference
quotinent (and derivatives of higher order can be a bit inaccurate as of now) quotient (and derivatives of higher order can be a bit inaccurate as of now)
Syntax highlighting Syntax highlighting
Completion for special symbols on tab Completion for special symbols on tab
@ -67,6 +67,9 @@ Variables
Variables are defined with the following syntax: name = value Variables are defined with the following syntax: name = value
Example: x = 3/4 Example: x = 3/4
Predefined variables
ans - receives the value computed of the most recent expression
Functions Functions
Functions are defined with the following syntax: name(param1, param2, etc.) = value Functions are defined with the following syntax: name(param1, param2, etc.) = value
Examples: f(x) = 2x+3; A(x, y) = (xy)/2 Examples: f(x) = 2x+3; A(x, y) = (xy)/2
@ -145,7 +148,7 @@ Matrices
possible to press the enter key to create a new row, instead of writing a semicolon. Pressing possible to press the enter key to create a new row, instead of writing a semicolon. Pressing
enter will not submit if there is no closing square bracket. Operations on matrices work the enter will not submit if there is no closing square bracket. Operations on matrices work the
same way as with vectors, except that two matrices multiplied result in matrix multiplication. same way as with vectors, except that two matrices multiplied result in matrix multiplication.
It is also possible to obtain the tranpose of a matrix with the syntax A^T, where A is a matrix It is also possible to obtain the transpose of a matrix with the syntax A^T, where A is a matrix
and T is a literal T. and T is a literal T.
Indexing Indexing