{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# matlab1 - Introduction to Matlab Entering Commands...

This preview shows pages 1–8. Sign up to view the full content.

Introduction to Matlab

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Entering Commands
Constants and Functions >> pi ans = 3.1416 >> eps ans = 2.2204e-016 >> sin(pi/2) ans = 1 >> log(1000) ans = 6.9078 >> log10(1000) ans = 3

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Some Constants bitmax: Largest usable positive integer eps: Smallest number that changes the value of 1 when added to it. realmin: Smallest usable positive real number realmax: Largest usable positive real number ans: Default variable names used for results i or j: sqrt(-1) inf : Stands for infinity, e.g., 1/0 NaN or nan : Stands for not a number, e.g., 0/0.
Constants … >> bitmax ans = 9.0072e+015 >> eps ans = 2.2204e-016 >> realmin ans = 2.2251e-308 >> realmax ans = 1.7977e+308 >> ans ans = 1.7977e+308 >> i ans = 0 + 1.0000i >> inf ans = Inf >> NaN ans = NaN

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Elementary Math Functions >> help elfun Elementary math functions. Trigonometric. sin - Sine. sinh - Hyperbolic sine. asin - Inverse sine. asinh - Inverse hyperbolic sine. cos - Cosine. cosh - Hyperbolic cosine. acos - Inverse cosine. acosh - Inverse hyperbolic cosine. tan - Tangent. tanh - Hyperbolic tangent. atan - Inverse tangent. atan2 - Four quadrant inverse tangent. atanh - Inverse hyperbolic tangent. sec - Secant. sech - Hyperbolic secant. asec - Inverse secant. asech - Inverse hyperbolic secant. csc - Cosecant. csch - Hyperbolic cosecant. acsc - Inverse cosecant. acsch - Inverse hyperbolic cosecant. cot - Cotangent. coth - Hyperbolic cotangent. acot - Inverse cotangent. acoth - Inverse hyperbolic cotangent.
Elementary Math Functions Exponential. exp - Exponential (e^x). log - Natural logarithm. log10 - Common (base 10) logarithm. log2 - Base 2 logarithm and dissect floating point number. pow2 - Base 2 power and scale floating point number. realpow - Power that will error out on complex result. reallog - Natural logarithm of real number. realsqrt - Square root of number greater than or equal to zero.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.
• Spring '10
• OzlenKonu
• Hyperbolic function, Elementary special functions, Inverse hyperbolic function, ans ans, elfun Elementary

{[ snackBarMessage ]}