Symbolic integration using 'int': Find integration constant using symbolic initial condition
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Roi Roded
am 2 Mai 2020
Beantwortet: Walter Roberson
am 2 Mai 2020
Hi, using 'syms' and 'int' I solve symbolic integral, which provides me the answer with integration constant 'C'. The result is a long-expression and I wish to define the initial condition, e.g., y(0)=a, so I can find the closed-form expression with the integration constant.
Is there a way to define symbolic initial conditions and get the complete solution?
best,
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 2 Mai 2020
constant = a - subs(TheExpression,Variable,0) + C
For example, TheExpression(0) might be 5+C and a might be 2, and 2 - (5+C) + C = 2-5 = -3 which is the constant of integration
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Calculus finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!