vpa

Symbolic

Variable-precision arithmetic. Evaluate a symbolic expression to the specified number of significant digits.

Syntax

vpa(expr)
vpa(expr, digits)

Examples

vpa('pi', 50)
▶ Run
vpa('sqrt(2)', 30)
▶ Run

See Also

Try SimLab — Free MATLAB® Alternative

466 functions. Runs in your browser. No install.

Open SimLab

Stay Updated

Get notified about new simulations and tools. We send 1-2 emails per month.