jrive

195 Reputation

6 Badges

4 years, 31 days

MaplePrimes Activity


These are replies submitted by jrive

@tomleslie 

thank you for your help.  

What I was trying to do was pretty basic --solve the ladder network for the node voltages and then plot each node voltage as a function of the input.  I was having difficulties using or operating on the individual  results of solve (all the node votlages in the variable sol) --basically what you are doing in the eval statements --I eventually figured it out.
 

Download pi_network_anal.mw

In your solution example, where/how do you substitute j*w for s and solve for the magnitude and or phase?  I don't understand what you're plotting.

Thanks again - your example helps me familiarize myself more with Syrup and how to do things in different ways 

@Joe Riel 

Thank you...got it working.

 

@Joe Riel Hello,

I'm trying to use Syrup and I'm having trouble figuring out how to use the results from Solve.  i was able to do it once, but I deleted it ,and cna't figure it out again! ugh!


 

after I solve the ckt using (sol,rest):=Solve(Ckt,'returnall'), I get all the node voltages on variable sol.

Download pi_filter_syrup_anal.mw

I then want to extract each node voltage, evaluate it substituting  s=j*2*pi*f, f=13.56e6, and plot a few of these on the same plot.  I can't figure out how to grab v2, for example, and evaluate it.  I've tried :

 

eval(subs(s=j*2*pi*f,sol[v2]), eval(subs(s=j*2*pi*f*v(v2))), etc...but can't get any of them to work.

BTW, I can't seem to import links to the code on here.   I used to be able, but now I can't ; I don't know what has changed...I get this error :

Maple Worksheet - Error

Failed to load the worksheet /maplenet/convert/pi_filter_syrup_anal.mw .

 

Thank you in advance for any help.

Jorge

 

 

 

 

 

 

 

 

@Joe Riel How do I install the package? from the Intro.mw, it says, "

Installation
Execute the following command to install Syrup.
PackageTools:-Install("this://",'overwrite')
:

 

but I get an error "Error,  (in PackageTools:-Install) cannot find package file," 

I suspect "this" should be something else - I tried Syrup, but it didn't work.  

I apologize if these are stupid questions --I'm pretty new to Maple...

 

Thank you  

@Joe Riel --I just downloaded it.  Very cool.  Thank you.

@tomleslie --yeah- I still struggle with the syntax.  Thank you.  I thought I had tried with and without, but anyway.  Thank you for your worksheet....

 

 

@Joe Riel , I am not familiar with it.  I will look into it --looks pretty intuitive.  Thank you!

 

@Carl Love  -- I appreciate the advice.  Can you give me an example of how you would have done it?

 

Thanks!

 

@acer  --I  was disliking the position dependency of indets.  I'll give what you suggest a shot.

Thank you.

@Carl Love  thanks for your help.  Not sure how it works, but "parametric" did the trick.

 

Thanks!

Jorge

 

@acer --this is exactly what I wanted to do.  Great.  - and thanks for raising my awareness about potential roundoff erros due to the combinations of large and small values.

Thank you.

@acer thank you again.!  Let me see if I cna follow what you did in the worksheet....

 

@acer did you mean to attach the  variants you mentioned?

@acer  -- I have a lot of learning to do!

 

Thank you!

Jorge

 

@acer following your previous example, I tried the following: 
 

(C1+C2)^(1/2)/(C1^(1/2)*C2^(1/2)*L1^(1/2))

(16)

``

S1 := sqrt(Ceq) = sqrt(C1)*sqrt(C2)/sqrt(C1+C2)

Ceq^(1/2) = C1^(1/2)*C2^(1/2)/(C1+C2)^(1/2)

(17)

S2 := (1/rhs = 1/lhs)(S1)

(C1+C2)^(1/2)/(C1^(1/2)*C2^(1/2)) = 1/Ceq^(1/2)

(18)

tmp := subs(S2, `ωres`)

(C1+C2)^(1/2)/(C1^(1/2)*C2^(1/2)*L1^(1/2))

(19)

rationalize(tmp)

(C1+C2)^(1/2)/(C1^(1/2)*C2^(1/2)*L1^(1/2))

(20)
>  
 

  I was expecting to be able to get the answer down to  1/(sqrt(Ceq) sqrt(L1)) per the substitutions above.  It would be better still if I could get the final answer to display 1/(sqrt(Ceq L1)).

 

Thanks again!
 

Download new_filter_solution.mw

 

1 2 3 4 5 Page 4 of 5