matlab1 - Introduction to Matlab Entering Commands...

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

View Full Document Right Arrow Icon
Introduction to Matlab
Background image of page 1

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

View Full DocumentRight Arrow Icon
Entering Commands
Background image of page 2
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
Background image of page 3

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

View Full DocumentRight Arrow Icon
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.
Background image of page 4
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
Background image of page 5

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

View Full DocumentRight Arrow Icon
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.
Background image of page 6
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.
Background image of page 7

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

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/29/2010 for the course MBG 101 taught by Professor Ozlenkonu during the Spring '10 term at Bilkent University.

Page1 / 33

matlab1 - Introduction to Matlab Entering Commands...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online