Maple Tutorial: Circuit Analysis with Maple

Click For Summary
The discussion centers on the use of Maple worksheets for developing tutorials related to first- and second-order linear circuits. The user expresses a desire to utilize the forum as a platform for sharing these tutorials, given its low traffic. A specific question is raised about how to plot a function in Maple without explicitly typing it as an argument in the plot command, particularly after using the dsolve command to obtain an analytical solution. The user compares this functionality to other programming languages, suggesting that Maple should allow referencing the last output directly. They mention discovering that the '%' symbol can be used to recall the last object, which addresses their query. Additionally, the user plans to consolidate Maple tutorials by subject rather than starting separate threads for each one. An updated Maple worksheet is also shared, along with a worksheet for Laplace transform analysis and frequency response.
quantumdude
Staff Emeritus
Science Advisor
Gold Member
Messages
5,560
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:

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
3
Views
2K
Replies
15
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
4
Views
3K