Old Hobby/Matlab

# [Matlab]Elementary Math (삼각, 지수 함수등..)

2008. 3. 22.

#### Exponential

 exp Exponential expm1 Compute exp(x)-1 accurately for small values of x log Natural logarithm log10 Common (base 10) logarithm log1p Compute log(1+x) accurately for small values of x log2 Base 2 logarithm and dissect floating-point numbers into exponent and mantissa nextpow2 Next higher power of 2 nthroot Real nth root of real numbers pow2 Base 2 power and scale 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

#### Complex

 abs Absolute value and complex magnitude angle Phase angle complex Construct complex data from real and imaginary components conj Complex conjugate cplxpair Sort complex numbers into complex conjugate pairs i Imaginary unit imag Imaginary part of complex number isreal Determine whether input is real array j Imaginary unit real Real part of complex number sign Signum function unwrap Correct phase angles to produce smoother phase plots

#### Rounding and Remainder

 ceil Round toward infinity fix Round toward zero floor Round toward minus infinity idivide Integer division with rounding option mod Modulus after division rem Remainder after division round Round to nearest integer

#### Discrete Math (e.g., Prime Factors)

 factor Prime factors factorial Factorial function gcd Greatest common divisor isprime Array elements that are prime numbers lcm Least common multiple nchoosek Binomial coefficient or all combinations perms All possible permutations primes Generate list of prime numbers rat, rats Rational fraction approximation

from : mathwork.com
728x90

#### 'Old Hobby > Matlab' 카테고리의 다른 글

[Matlab]전달함수의 스탭응답을 알아보자.  (2) 2008.04.04 2008.03.22 2008.03.22

, , , ,