symbolic integral with symbolic integral limits , how do i code this

2 Ansichten (letzte 30 Tage)
hi all, kindly help me to solve above 2 equations . all symbols are constant and subject is r .thanks

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 14 Mai 2017
Bearbeitet: Walter Roberson am 14 Mai 2017
syms r A1 A2 R
M1 = int( sqrt(A1+A2*r^2)*r, r, 0, R)
L1 = int( sqrt(A1+A2*r^2)/(1+4*r), r, 0, R)
You will see M1 given as a piecewise output. That is telling you that if you were able to give some constraints on your inputs, you might be able to come out with a simpler output.
In particular, if you are able to confine your symbols to be real-valued,
syms r A1 A2 R real
then you get a useful closed-form solution for M1.
MATLAB cannot find a closed-form solution for L1. (Some other programs I have tried think about it for a long time; I am not sure yet whether they will come out with anything.)
  5 Kommentare
Walter Roberson
Walter Roberson am 23 Mai 2017
Mathematica says that the closed form for L is
(1/(32 Sqrt[16 A1+A2]))(-8 Sqrt[A1 (16 A1+A2)]+8 Sqrt[(16 A1+A2) (A1+A2 R^2)]+Sqrt[A2 (16 A1+A2)] Log[A1 A2]+2 (16 A1+A2) Log[4 A1+Sqrt[A1 (16 A1+A2)]]+32 A1 Log[1+4 R]+2 A2 Log[1+4 R]-2 Sqrt[A2 (16 A1+A2)] Log[A2 R+Sqrt[A2 (A1+A2 R^2)]]-32 A1 Log[4 A1-A2 R+Sqrt[(16 A1+A2) (A1+A2 R^2)]]-2 A2 Log[4 A1-A2 R+Sqrt[(16 A1+A2) (A1+A2 R^2)]])

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by