Difference between revisions of "Maple/Phasors"
Line 24: | Line 24: | ||
===Simplifying solutions=== | ===Simplifying solutions=== | ||
− | Solutions involving the <code>polar</code>command must first be evaluated using the <code>evalc</code> command before using the <code>simplify</code> command. | + | Solutions involving the <code>polar</code> command must first be evaluated using the <code>evalc</code> command before using the <code>simplify</code> command. |
==Handy commands== | ==Handy commands== | ||
Line 33: | Line 33: | ||
argumentd:=(num)->argument(num)*180/Pi; | argumentd:=(num)->argument(num)*180/Pi; | ||
</source> | </source> | ||
+ | |||
+ | [[Category:ECE 110]] | ||
+ | [[Category:EGR 224]] |
Revision as of 01:25, 26 February 2013
This page contains handy Maple functions for use with Phasors and Phasor analysis.
Contents
Processes
Entering a numerical value for phasor or complex number
To enter a complex number in rectangular coordinates, use \(I\) (capital I) as the imaginary number or else re-define the variable \(j\) as the imaginary number with
j:=I
at the start of your code.
For polar representations, you can use the polar(MAG, ANG)
command. Keep in mind that the angle will need to be in radians. If you want to be able to use polar coordinates with degrees, you can define a new version of polar as follows:
polard:=(mag, angd)->polar(mag, angd*Pi/180)
Obtaining magnitude and phase values
To get the magnitude of a complex number, use the abs
command. To get the angle, use argument
but keep in mind the angle will be in radians. To get the angle in degrees, either multiple the output from argument
by 180/Pi or create a new argumentd function for yourself:
argumentd:=(num)->argument(num)*180/Pi
Converting to rectangular coordinates
Use the evalc(NUM)
command to convert to rectangular coordinates.
Simplifying solutions
Solutions involving the polar
command must first be evaluated using the evalc
command before using the simplify
command.
Handy commands
Given the above, here is a list of the handy commands that can be copied into the beginnings of a Maple worksheet:
j:=I;
polard:=(mag, angd)->polar(mag, angd*Pi/180);
argumentd:=(num)->argument(num)*180/Pi;