cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

symbolic integration with initial condition

RP_10150473
4-Participant

symbolic integration with initial condition

Hi - how do I tell Mathcad Prime to include an initial condition when symbolically integrating?  I want the initial value of my function to be 0.1 at time t=0. 

 

See attached.

 

thank you,

russ

ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:RP_10150473)

You have:

LucMeekes_0-1716234417962.png

(I've added an integration constant c)

and want:

LucMeekes_2-1716234490165.png

This means that c will be a function of omega and theta, as follows:

LucMeekes_1-1716234437563.png

With that you can (re-) define:

LucMeekes_3-1716234584629.png

Success!
Luc

 

 

View solution in original post

4 REPLIES 4
Werner_E
25-Diamond I
(To:RP_10150473)

initial? This would mean that you also have to provide an initial value for t. I suppose you mean t=0, that is phi(0)=0.1.

So you actually have a (simple) ODE. Current version of Prime can solve ODEs symbolically:

Werner_E_0-1716233780422.png

Otherwise you could do it step by step:
.) Add an arbitratry constant C of integration
.) Apply the initial condition and solve for C

.) Redefine the function using the correct expression for C

Werner_E_1-1716233900165.png

 

or a little bit shorter, avoiding the explicit definition of C

Werner_E_2-1716234896400.png

 

which can be combined in one small program

Werner_E_3-1716235168847.png

 

P10 worksheet attached

 

 

LucMeekes
23-Emerald III
(To:Werner_E)

Translated to Prime 9

RP_10150473
4-Participant
(To:Werner_E)

Very nice, thank you!

LucMeekes
23-Emerald III
(To:RP_10150473)

You have:

LucMeekes_0-1716234417962.png

(I've added an integration constant c)

and want:

LucMeekes_2-1716234490165.png

This means that c will be a function of omega and theta, as follows:

LucMeekes_1-1716234437563.png

With that you can (re-) define:

LucMeekes_3-1716234584629.png

Success!
Luc

 

 

Announcements

Top Tags