Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Translate the entire conversation x

need solution for piece wise differential equation in matcad

nkhadar
6-Contributor

need solution for piece wise differential equation in matcad

Hello, I'm Mathcad newbie and I am unable to solve the attached problem in mathcad. 

how to plot voltage vs df/dt and voltage vs f

ACCEPTED SOLUTION

Accepted Solutions
-MFra-
21-Topaz II
(To:-MFra-)

The for loop begins from j=1 not 0:

undefined

View solution in original post

8 REPLIES 8

Attached is how to do it; but I don't like the result. . .

LucMeekes
23-Emerald III
(To:nkhadar)

This may be a start. (Note, a value for Vo is needed, I just put in 2).

undefined

This is your df/dVin. Note that it is discontinuous!

Then you find f by simple integration:

undefined

So now you have the function f(Vin...), You can put in any value, or function, for Vin.

 

Success!
Luc

That's great!

 

Plot f(t) vs t  ??

-MFra-
21-Topaz II
(To:nkhadar)

Hi,

I've used the fourth order Runge-Kutta method, the result is below depicted:

undefined

Werner_E
25-Diamond I
(To:nkhadar)

You could define the function that way

undefined

But it would be the same as

undefined

-MFra-
21-Topaz II
(To:nkhadar)

Hi, nhkadar,

I can give you an image:

undefined

-MFra-
21-Topaz II
(To:-MFra-)

The for loop begins from j=1 not 0:

undefined

LucMeekes
23-Emerald III
(To:-MFra-)
Announcements

Top Tags