Você está na página 1de 2

A Mathcad Example which utilizes Input and Output Tables (page 1 of 2)

n := 1 .. 11 Range Variable [Definition of the number of frequencies] This range variable was created by typing: n : 1 ; 11

f :=
n

10 Hz 50 Hz 100 Hz 500 Hz 1000 Hz 5000 Hz 10000 Hz 50000 Hz 100000 Hz 500000 Hz 1000000 Hz Frequency (Hz) [Definition of the 11 frequencies]

This input table was created by typing: f [ n : 10 , 50 , 100 , 500 , .... and is utilized to enter each of the 11 values of input frequency ( f1, f 2, f3, f4, ... f11 ). This input table defines each element of the vector fn. A vector is an array or matrix containing one column.

Appropriate units such as: Hz, farads, degrees, or ohms may be added to the values utilized in your Mathcad definition and evaluation statements. For example, in order to add the units of Hz to the top input frequency value shown in the table to the left: after typing "10" then type " * " and then select "Insert" on the Mathcad toolbar, next select "Unit...", then select Dimension "Frequency" and then select Unit "Hertz-sampling (Hz)", and finally click "OK". The units of Hz can be added to the other 10 elements of the vector fn in a similar manner.

R := 1000 Resistance (ohms) [Definition]

C := 33 10

farad

Capacitance (farads) [Definition]

Zc :=
n

1 j 2 f C
n

Vectors such as Zcn are defined by typing: Z c [ n : Note that j is actually typed as 1j Note that the Mathcad definition and evaluation statements in this example problem which utilize what appears to be subscript notation is actually vector notation. Thus fn is actually typed as: f [ n and is not typed as: f . n

Impedance of the capacitor (ohms) [Definition]

Zt := R + Zc
n

MagZt := Zt
n

AngleZt := arg Zt
n

( n)

Total Impedance (ohms) [Definition]

Magnitude of the Total Impedance (ohms) [Definition]

Angle of the Total Impedance (degrees) [Definition]

A Mathcad Example which utilizes Input and Output Tables (page 2 of 2)

Output tables which display the contents of vectors such as Ztn are generated by typing: Z t [ n = f =
n 10 Hz 50 100 500 1000 5000 10000 50000 100000 500000 1000000

Zt =
n 110 3-4.823i10 5 110 3-9.646i10 4 110 3-4.823i10 4 110 3-9.646i10 3 110 3-4.823i10 3 110 3-964.575i 110 3-482.288i 110 3-96.458i 110 3-48.229i 110 3-9.646i 110 3-4.823i

MagZt =
n 482.28910 3 96.46310 3 48.23910 3 9.69710 3 4.92510 3 1.38910 3 1.11010 3 1.00510 3 1.00110 3 1.00010 3 1.00010 3

AngleZt =
n -89.881 -89.406 -88.812 -84.081 -78.286 -43.967 -25.747 -5.510 -2.761 -0.553 -0.276

deg

Frequency (Hz) [Evaluation, to relist the 11 frequencies for reference]

Total Impedance (ohms) [Evaluation] [Rectangular Format]

Magnitude of the Total Impedance (ohms) [Evaluation] [Polar Format]

Angle of the Total Impedance (degrees) [Evalation] [Polar Format]

Note that in order to obtain units in degrees for the output table which displays the vector AngleZtn, it is necessary to type deg in the place for units conversion. Otherwise the default units of radians will be displayed in this table.

Você também pode gostar