Octave Built-In Functions
Description
Octave has many built-in functions such as sin(x), exp(x), and log(x). Note that the natural logarithm command is {log(x)}} and not ln(x). A list of built-in functions for Octave is given below.
Math Notation | Octave Command | Math Notation | Octave Command | |
---|---|---|---|---|
$\sqrt{x}$ | sqrt(x) | $e^x$ | exp(x) | |
$\ln{x}$ | log(x) | $\log_{10}{x}$ | log10(x) | |
$\cos{x}$ | cos(x) | $\sin{x}$ | sin(x) | |
$\tan{x}$ | tan(x) | $\cot{x}$ | cot(x) | |
$\sec{x}$ | sec(x) | $\csc{x}$ | csc(x) | |
$\cos^{-1}{x}$ | acos(x) | $\sin^{-1}{x}$ | asin(x) | |
$\tan^{-1}{x}$ | atan(x) | $\cot^{-1}{x}$ | acot(x) | |
$\sec^{-1}{x}$ | asec(x) | $\csc^{-1}{x}$ | acsc(x) | |
$\cosh{x}$ | cosh(x) | $\sinh{x}$ | sinh(x) | |
$\tanh{x}$ | tanh(x) | $\coth{x}$ | coth(x) | |
$\text{sech}{x}$ | sech(x) | $\text{csch}{x}$ | csch(x) | |
$\cosh^{-1}{x}$ | acosh(x) | $\sinh^{-1}{x}$ | asinh(x) | |
$\tanh^{-1}{x}$ | atanh(x) | $\coth^{-1}{x}$ | acoth(x) | |
$\text{sech}^{-1}{x}$ | asech(x) | $\text{csch}^{-1}{x}$ | acsch(x) |
Sage Cell
Code
log(3) - sin(exp(2))
Options
Tags
Primary Tags:
Secondary Tags:
Related Cells
Attribute
Permalink:
Author: T. Judson
Date: 05 Dec 2018 16:41
Submitted by: Tom Judson