How do I write the following in matlab ?

1 Ansicht (letzte 30 Tage)
Jonathan Brudcom
Jonathan Brudcom am 5 Sep. 2020
I just need something like a=... and b= ...
  2 Kommentare
Jonathan Brudcom
Jonathan Brudcom am 5 Sep. 2020
For some reason the picture did not upload, Here it is
the cyclist
the cyclist am 5 Sep. 2020

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam am 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 Kommentar
the cyclist
the cyclist am 5 Sep. 2020
Bearbeitet: the cyclist am 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.

Melden Sie sich an, um zu kommentieren.


Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam am 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);

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by