Esponenti e logaritmi
Funzioni esponenziali, logaritmiche, di potenze e di radici
Oltre a funzioni comuni come exp
e log
, MATLAB® dispone di numerose altre funzioni correlate che consentono calcoli numerici flessibili. Le funzioni expm1
e log1p
compensano gli errore di arrotondamento numerico in argomenti ridotti, mentre le funzioni reallog
, realpow
e realsqrt
limitano l’intervallo di queste funzioni ai numeri reali. nthroot
calcola le radici di qualsiasi ordine, mentre le funzioni specializzate pow2
e nextpow2
calcolano le potenze di due.
Funzioni
exp | Exponential |
expm1 | Compute exp(X)-1 accurately for small
X |
log | Natural logarithm |
log10 | Common logarithm (base 10) |
log1p | Compute natural logarithm of 1+X accurately for small
X |
log2 | Base 2 logarithm and floating-point number dissection |
nextpow2 | Exponent of next higher power of 2 |
nthroot | Real nth root of real numbers |
pow2 | Base 2 exponentiation and scaling of floating-point numbers |
reallog | Natural logarithm for nonnegative real arrays |
realpow | Array power for real-only output |
realsqrt | Square root for nonnegative real arrays |
sqrt | Square root |
Argomenti
- Potenze ed esponenti
Questo argomento mostra come calcolare potenze ed esponenti di matrici con diversi metodi.
- Graphical Comparison of Exponential Functions
This example shows an interesting graphical approach for discovering whether e^pi is greater than pi^e.