Some important functions you should not forget!
In mathematical programming environment, it is really necessary for us to know various functions which can perform fundamental operations. I am sharing a curated list of functions which are very much useful while programming mathematical models in MATLAB.
Fundamental mathematical functions you should know. |
Let's take some examples to experience the use of these functions -
Commands used in simple mathematical equations. |
Variables 'a' , 'b' are defined by user, which are known as independent variables. Variables 'x' and 'y' are output of some mathematical operation of 'a' and 'b', which is known as dependent variable.
Simple but important mathematical functions used in equations. |
'Log' denotes the natural log and 'Log10' denotes the log to the base 10. Please do not get confuse with analytical commands or commands in scientific calculator.
Along with the mathematical function, now let's take a look at trigonometric functions.
Trigonometric functions. |
Specific note for trigonometric function is use of angle in degree and radian.
- If you are defining angle in 'Degree' use sind() as a function, having 'd' as superscript.
- To use inverse trigonometric functions use 'a' as subscript like asind() to get value of angle in degree and asin() to get value of angle in radian.
Learn best programming practices and be a pro-programmer with simple and easy tips and tricks.
Thank you sir...keep updating
ReplyDelete