How to simplify an algebraic formula in MatLab? - simplify -- MatLab
How to simplify an algebraic formula in MatLab? - simplify -- MatLab
[Ans]
simplify command
[Description]
[Syntax]
more details on
Algebraic simplification - MATLAB simplify (mathworks.com)
[Useful Tips]
sin(x)^2+cos(x)^2==1
log(exp(a))==a
[Code]
clear
clc
syms x c alpha beta
%one formula of triangular function
simplify(sin(x)^2 + cos(x)^2) %1
%formula of exponent function
simplify(exp(c*log(sqrt(alpha+beta)))) %(alpha + beta)^(c/2)
simplify(sqrt(x^2)) %sqrt(x^2)
simplify(sqrt(x^2),'IgnoreAnalyticConstraints',true) %x
u = symunit;
simplify(u.m+u.mm) %(1001/1000)*[m]
Comments
Post a Comment