I =

Any assumptions on the parameters n_1, n_2, b or R that could help simplifying the result ?

1 view (last 30 days)

Show older comments

Elliott Kitson
on 25 Jun 2024

Commented: Elliott Kitson
on 25 Jun 2024

I'm having trouble with integrating this using MATLAB. When i try and run it as shown below, the answer that comes out i'm pretty sure is wrong. This is the first time i'm using matlab to help with integration so apologies in advance if i'm doing something very silly. Can anyone give me some pointers as to what i'm doing wrong?

syms y b n_1 n_2 R

b_y = (b-((b-(b/4))/(n_1+n_2))*y);

x = (y^2*b_y)/(1+(y/R));

I = int(x,-n_1,n_2)

Torsten
on 25 Jun 2024

Edited: Torsten
on 25 Jun 2024

Does this help ?

Note that no distiction is made about the R-value. But you should keep in mind that the answer is incorrect if -R is in the interval [-eta1 eta2].

syms y b n_1 n_2 R

b_y = (b-((b-(b/4))/(n_1+n_2))*y);

x = (y^2*b_y)/(1+(y/R));

I = int(x,y);

simplify(subs(I,y,n_2)-subs(I,y,-n_1))

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

Start Hunting!