How do I write the following in matlab ?

1 view (last 30 days)
I just need something like a=... and b= ...

Answers (2)

Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam on 5 Sep 2020
H1 = (x*(1+x^2)*(1+2*x)^2)^2.3 / -log(abs(tan(y))) + (-log(abs(tan(y)))-x) /(x*(1+x^2)*(1+2*x)^2);
R2 = sinh(sqrt(2*x+(sin(y)^2))/((x+log(abs(tan(y))))^1.3 + abs(x)))-(x+log(abs(tan(y)))+cos(y))/(2*x +(sin(y)^2))^(1/3);
  1 Comment
the cyclist
the cyclist on 5 Sep 2020
Edited: the cyclist on 5 Sep 2020
Assuming that ctg is supposed to be cotangent, those will need to be changed from tan(y) to cot(y).
If x and y are vectors and not scalars, many of operations here will need to be changed to element-wise.

Sign in to comment.


Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam on 5 Sep 2020
H1 = (x.*(1+x.^2).*(1+2*x).^2).^2.3 ./ log(abs(cot(y))) + (log(abs(cot(y)))-x) ./(x.*(1+x.^2).*(1+2*x).^2);
R2 = sinh(sqrt(2*x+(sin(y).^2))/((x+log(abs(tan(y)))).^1.3 + abs(x)))-(x+log(abs(tan(y)))+cos(y))./(2*x +(sin(y).^2)).^(1/3);

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!