CAS
Exact symbolic calculation with Symja: integrals, equations and differential equations, simplification, expansion, factorization, limits and Taylor series. Typical uses: solve an equation exactly, check a formula. The Symja jars must be installed first, see
cas status.cas statuscas integratecas integratecas solvecas dsolvecas simplifycas expandcas factorcas limitcas seriescas eval
cas status
Description
State of the CAS: folder of the jars, number of jars, installed or not (with the error), test Integrate(x^2, x)
State of the CAS: folder of the jars, number of jars, installed or not (with the error), test Integrate(x^2, x)
admin
cas status
mentdb
{"installed": true, "folder": "/opt/mentdb/cas", "jars": 30, "test": "x^3/3", "timeout_seconds": 30}
Often used with
cas expand · cas factor · cas solve · json load select · num poly_add · num poly_derive · num poly_eval · num poly_integrate
cas expand · cas factor · cas solve · json load select · num poly_add · num poly_derive · num poly_eval · num poly_integrate
cas integrate <expression> <variable>
Description
Primitive (indefinite integral) of an expression
Primitive (indefinite integral) of an expression
Parameters
expression: The expression (MentDB syntax: sin, ln, sqrt, pi, e, bessel_j...) - String - required
variable: The variable, ex: x - String - required
expression: The expression (MentDB syntax: sin, ln, sqrt, pi, e, bessel_j...) - String - required
variable: The variable, ex: x - String - required
admin
cas integrate "x^2" "x"
mentdb
x^3/3
admin
cas integrate "1/x" "x"
mentdb
ln(x)
cas integrate <expression> <variable> <a> <b>
Description
Definite integral from a to b (exact when possible); the bounds can be expressions (pi, Infinity)
Definite integral from a to b (exact when possible); the bounds can be expressions (pi, Infinity)
Parameters
expression: The expression - String - required
variable: The variable - String - required
a: The lower bound (number or expression) - String - required
b: The upper bound (number or expression) - String - required
expression: The expression - String - required
variable: The variable - String - required
a: The lower bound (number or expression) - String - required
b: The upper bound (number or expression) - String - required
admin
cas integrate "sin(x)" "x" 0 "pi"
mentdb
2
admin
cas integrate "x*e^(-x)" "x" 0 "Infinity"
mentdb
1
Used in use cases (4 recipes)
Mathematical physicist › Hydrogen atom: 2s radial function and spherical harmonics
Advanced physical chemist › Maxwell-Boltzmann speeds of nitrogen
Pharmacist & pharmacokinetics › Multiple oral dosing by convolution
Medical physicist › I-131 therapy: decay correction and MIRD thyroid dose
Mathematical physicist › Hydrogen atom: 2s radial function and spherical harmonics
Advanced physical chemist › Maxwell-Boltzmann speeds of nitrogen
Pharmacist & pharmacokinetics › Multiple oral dosing by convolution
Medical physicist › I-131 therapy: decay correction and MIRD thyroid dose
Often used with
json load select · math eval · num maximize · bigdec precision · bigdec round · cas eval · cas expand · dsp convolve
json load select · math eval · num maximize · bigdec precision · bigdec round · cas eval · cas expand · dsp convolve
cas solve <equations> <variables>
Description
Solve exactly an equation or a system (a single = is an equation).
Returns a JSON array of solutions; an empty array when there is none
Solve exactly an equation or a system (a single = is an equation).
Returns a JSON array of solutions; an empty array when there is none
Parameters
equations: An equation, or a JSON array of equations - String - required
variables: A variable, or a JSON array of variables - String - required
equations: An equation, or a JSON array of equations - String - required
variables: A variable, or a JSON array of variables - String - required
admin
cas solve "x^2 = 4" "x"
mentdb
[{"x": "-2"}, {"x": "2"}]
admin
cas solve "[\"x+y = 3\", \"x-y = 1\"]" "[\"x\", \"y\"]"
mentdb
[{"x": "2", "y": "1"}]
Used in use cases (7 recipes)
Mathematician › Critical points of a function of two variables
Math teacher & student › Solve a quadratic equation, exact and decimal
Optics & photonics › Thin lens: image distance and magnification
Mathematical physicist › Quantum harmonic oscillator with Hermite polynomials
Control engineer › PI control of a first-order plant: exact and simulated step response
Math teacher & student › Study a function: derivative and table of values
and 1 more in the Use cases
Mathematician › Critical points of a function of two variables
Math teacher & student › Solve a quadratic equation, exact and decimal
Optics & photonics › Thin lens: image distance and magnification
Mathematical physicist › Quantum harmonic oscillator with Hermite polynomials
Control engineer › PI control of a first-order plant: exact and simulated step response
Math teacher & student › Study a function: derivative and table of values
and 1 more in the Use cases
Often used with
json load select · math diff · math eval · num poly_roots · cas factor · cas simplify · num ode · num poly_add
json load select · math diff · math eval · num poly_roots · cas factor · cas simplify · num ode · num poly_add
cas dsolve <equations> <function> <variable>
Description
Solve an ordinary differential equation (or a system): y'(x), y''(x); C(1), C(2) are the constants of integration.
Returns a JSON array of solutions
Solve an ordinary differential equation (or a system): y'(x), y''(x); C(1), C(2) are the constants of integration.
Returns a JSON array of solutions
Parameters
equations: An equation, or a JSON array of equations (with the initial conditions, ex: y(0) = 1) - String - required
function: The unknown function, ex: y - String - required
variable: The variable, ex: x - String - required
equations: An equation, or a JSON array of equations (with the initial conditions, ex: y(0) = 1) - String - required
function: The unknown function, ex: y - String - required
variable: The variable, ex: x - String - required
admin
cas dsolve "y'(x) = y(x)" "y" "x"
mentdb
[{"y(x)": "e^x*C(1)"}]
cas simplify <expression>
Description
Simplify an expression (Symja FullSimplify, with the trigonometric identities)
Simplify an expression (Symja FullSimplify, with the trigonometric identities)
Parameters
expression: The expression - String - required
expression: The expression - String - required
admin
cas simplify "sin(x)^2+cos(x)^2"
mentdb
1
Used in use cases (3 recipes)
Mathematical physicist › Quantum harmonic oscillator with Hermite polynomials
Control engineer › PI control of a first-order plant: exact and simulated step response
Mechanical & civil engineer › Deflection of a beam with the CAS
Mathematical physicist › Quantum harmonic oscillator with Hermite polynomials
Control engineer › PI control of a first-order plant: exact and simulated step response
Mechanical & civil engineer › Deflection of a beam with the CAS
Often used with
cas eval · cas solve · json load select · math eval · num ode · arith factorial · cas dsolve · cas factor
cas eval · cas solve · json load select · math eval · num ode · arith factorial · cas dsolve · cas factor
cas expand <expression>
Description
Expand an expression (products and powers)
Expand an expression (products and powers)
Parameters
expression: The expression - String - required
expression: The expression - String - required
admin
cas expand "(x+1)^2"
mentdb
1+2*x+x^2
Used in use cases (3 recipes)
Math teacher & student › A cubic from its roots: expand, factor, study
Mathematical physicist › Hydrogen atom: 2s radial function and spherical harmonics
Control engineer › State feedback by pole placement (Ackermann)
Math teacher & student › A cubic from its roots: expand, factor, study
Mathematical physicist › Hydrogen atom: 2s radial function and spherical harmonics
Control engineer › State feedback by pole placement (Ackermann)
Often used with
json load select · cas eval · cas factor · cas integrate · cas solve · cas status · math eval · matrix add
json load select · cas eval · cas factor · cas integrate · cas solve · cas status · math eval · matrix add
cas factor <expression>
Description
Factor a polynomial
Factor a polynomial
Parameters
expression: The expression - String - required
expression: The expression - String - required
admin
cas factor "x^2-1"
mentdb
(-1+x)*(1+x)
Used in use cases (2 recipes)
Math teacher & student › A cubic from its roots: expand, factor, study
Mathematical physicist › Quantum harmonic oscillator with Hermite polynomials
Math teacher & student › A cubic from its roots: expand, factor, study
Mathematical physicist › Quantum harmonic oscillator with Hermite polynomials
Often used with
cas solve · json load select · num poly_add · num poly_derive · num poly_eval · num poly_mul · num poly_roots · arith factorial
cas solve · json load select · num poly_add · num poly_derive · num poly_eval · num poly_mul · num poly_roots · arith factorial
cas limit <expression> <variable> <a>
Description
Limit of an expression when the variable tends to a (a can be Infinity)
Limit of an expression when the variable tends to a (a can be Infinity)
Parameters
expression: The expression - String - required
variable: The variable - String - required
a: The point (number or expression) - String - required
expression: The expression - String - required
variable: The variable - String - required
a: The point (number or expression) - String - required
admin
cas limit "sin(x)/x" "x" 0
mentdb
1
admin
cas limit "(1+1/n)^n" "n" "Infinity"
mentdb
e
Used in use cases (3 recipes)
Mathematical physicist › Black body: Planck integral, zeta and Stefan-Boltzmann
Control engineer › PI control of a first-order plant: exact and simulated step response
Sales & marketing analyst › Bass diffusion curve of a new app
Mathematical physicist › Black body: Planck integral, zeta and Stefan-Boltzmann
Control engineer › PI control of a first-order plant: exact and simulated step response
Sales & marketing analyst › Bass diffusion curve of a new app
Often used with
bigdec div · bigdec pi · bigdec pow · cas eval · cas series · cas simplify · cas solve · const get
bigdec div · bigdec pi · bigdec pow · cas eval · cas series · cas simplify · cas solve · const get
cas series <expression> <variable> <a> <n>
Description
Taylor series of order n around a (the polynomial, without the O(x^n) term)
Taylor series of order n around a (the polynomial, without the O(x^n) term)
Parameters
expression: The expression - String - required
variable: The variable - String - required
a: The point - String - required
n: The order (0 to 50) - Number - required
expression: The expression - String - required
variable: The variable - String - required
a: The point - String - required
n: The order (0 to 50) - Number - required
admin
cas series "sin(x)" "x" 0 5
mentdb
x-x^3/6+x^5/120
Used in use cases (2 recipes)
Mathematical physicist › Black body: Planck integral, zeta and Stefan-Boltzmann
Astronomer › Airy disk of a 200 mm telescope
Mathematical physicist › Black body: Planck integral, zeta and Stefan-Boltzmann
Astronomer › Airy disk of a 200 mm telescope
Often used with
num solve · bigdec div · bigdec pi · bigdec pow · cas limit · const get · math eval · num integrate
num solve · bigdec div · bigdec pi · bigdec pow · cas limit · const get · math eval · num integrate
cas eval <expression>
Description
Any Symja expression, in the Symja syntax (result in the Symja syntax): D, Integrate, Solve, DSolve, Simplify, Factor, Series, Limit, Sum, Product, Det, Inverse, Eigenvalues... (https://symjaweb.appspot.com/)
Any Symja expression, in the Symja syntax (result in the Symja syntax): D, Integrate, Solve, DSolve, Simplify, Factor, Series, Limit, Sum, Product, Det, Inverse, Eigenvalues... (https://symjaweb.appspot.com/)
Parameters
expression: The Symja expression - String - required
expression: The Symja expression - String - required
admin
cas eval "D(Sin(x)^2, x)"
mentdb
2*Cos(x)*Sin(x)
admin
cas eval "Sum(1/k^2, {k, 1, Infinity})"
mentdb
Pi^2/6
Used in use cases (4 recipes)
Mathematician › The Basel problem to 30 digits
Mathematical physicist › Hydrogen atom: 2s radial function and spherical harmonics
Control engineer › PI control of a first-order plant: exact and simulated step response
Mechanical & civil engineer › Deflection of a beam with the CAS
Mathematician › The Basel problem to 30 digits
Mathematical physicist › Hydrogen atom: 2s radial function and spherical harmonics
Control engineer › PI control of a first-order plant: exact and simulated step response
Mechanical & civil engineer › Deflection of a beam with the CAS
Often used with
math eval · cas simplify · json load select · bigdec compare · bigdec div · bigdec pi · bigdec pow · bigdec precision
math eval · cas simplify · json load select · bigdec compare · bigdec div · bigdec pi · bigdec pow · bigdec precision
