Tutorial: Circuit Analysis with Maple

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 5K views
Messages
5,564
Reaction score
24
Since Greg recently started allowing Maple worksheets as attachments and since this lonely little forum gets hardly any traffic, I'm going to start using it as an incubator for the development of tutorials for use at PF.

I've attached a Maple worksheet (done in Maple 9.5) that shows how to do calculations for first- and second order linear circuits. I'm just learning Maple myself, so if there is a less retarded way to do this then please do speak up.
 

Attachments

Physics news on Phys.org
OK quiet down, I can barely hear myself think. :biggrin:

I've got a question that maybe one of you can answer. If not then I'll post in the Math section. How do you plot a function in Maple without actually typing the function as an argument in the plot command? Say I use the dsolve command to get an analytical solution for a differential equation. Can I use the plot command to graph it simply by referring to the function by name, rather than typing it out?
 
This is a magma (and other language) idea, but usually the program stores the previous output (or some number of the last few returned values) and doing something like plot $1 will make it plot the last returned value. A command like dsolve will return a value to somewhere, it's just accessing it. Sorry I can't be more help, but I'm just extrapolating from other languages (in python it would be _, I think).
 
I did a quick search and " is the last value stored, "" the last but one (and I presume this holds for some small number of " symbols.

So if you do

dsolve(something);
plot(");
it should plot whatver dsolve returned.
 
The Maple worksheet I attached to the OP was old. I thought it was a newer one. An updated version is attached, as is a worksheet for Laplace transform analysis and frequency response. Anyone have any thoughts?

I was going to start a new thread for each Maple Tutorial, but instead I'm going to lump them together by subject. So I changed the title of this thread to reflect that. Anyone can feel free to join in.

matt grime said:
I did a quick search and " is the last value stored, "" the last but one (and I presume this holds for some small number of " symbols.

Thanks Matt. I independently found out that % works for recalling the last object.
 

Attachments

Last edited: