clear -- reset all variablesclear variableName -- reset variableclc -- clean screenclose -- deletes current figureclose all -- deletes all figuresclose figureName -- deletes specific figurewho -- your variableswhos -- details on your variableshelp functionName -- view syntax and usage information for function |
realmax -- 179.7693e+306try: factorial(170) and factorial(171) realmin -- 22.2507e-3091/0 = Inf0/0 = NaN |
+ Addition |
2 + 4 = 6 | x + y |
- Subtraction |
19 - 6 = 13 | x - y |
* Multiplication |
9 * 8 = 72 | x * y |
/ Division |
6/3 = 2 | 12/36 = 1/3 |
\ Right Division |
6\3 = 1/2 | 12\36 = 3 |
^ Exponentiation |
2^3 = 8 | x^5 |
descriptive |
common |
---|---|
pressure = 23; |
p = 23; |
speedOfLight = 3e8; |
c = 3e8; |
initialVelocity = 3; |
v0 = 3; |
camelHairSuit = 4e6; |
chs = 4e6; |
radians |
degrees |
|
---|---|---|
sincostancscseccot |
sindcosdtandcscdsecdcotd |
sqrt() -- square root |
exp() -- exponential function |
log() -- natural log |
log10() -- base 10 logarithm |
rem() -- remainder |
round() -- rounds to nearest integer |
ceil() -- round to infinity |
floor() -- round to negative infinity |
fix() -- round towards zero |
abs() -- absolute value |
factorial -- factorial |
factor -- split a number into primes |
Number |
Scientific Notation |
Matlab |
||
---|---|---|---|---|
4509 |
= |
4.509 x 10^3 |
= |
4.509e3 |
0.0000365 |
= |
3.65 x 10^-5 |
= |
3.65e-5 |
3,241,234,478 |
= |
3.241234478 x 10^9 |
= |
3.241234478e9 |
"Our enemies are innovative and resourceful, and so are we. They never stop thinking about new ways to harm our country and our people, and neither do we." |
"It was clear to me that men and women were equal — if not more so." |