kle8309

22 Reputation

5 Badges

10 years, 141 days

MaplePrimes Activity


These are replies submitted by kle8309

@taro 

this doesn't not give the answer I was looking for, which requires the Y axis to be in dB

but thanks anyway

@Carl Love 

only when you have power you use 10log(P1/P2)

However, when you have voltage you use 20log(V1/V2)

because that is equivalent to power: 20log(V1/V2)=10log(V1^2/V2^2)

@Carl Love 

Sorry about that, I forgot to include the Units:-Standard to the script so the error didn't show up when you tested it. However, the BodePlot still doesn't work regardless of with(Units:-Standard).  This is the complete script:

restart:

with(Units:-Standard):

 

R1 := 18.2*10^3*Unit('Omega');

R2 := 10^3*Unit('Omega');

C1 := 470*10^(-12)*Unit('F');

C2 := 4.7*10^(-9)*Unit('F');

# wo is in hertz

wo := 1/sqrt(R1*R2*C1*C2);

# Q is unitless

Q := wo*R1*R2*C2/(R1+R2)

with(DynamicSystems):

sys := TransferFunction(wo^2/(s^2+wo*s/Q+wo^2)):

#Error, (in Units:-Standard:-+) the units `1` and `1/s` have incompatible dimensions

BodePlot(sys, hertz = true, output = dualaxis);

#Error, (in Verify:-CommonExports) system object is not a module

@acer 

Thank you for the quick reply!  I'm new to Maple so this really helps me a lot.

Interestingly, since I was using the Unit(Natural) before, when I used the convert( Unit(m^2*kg/(s^4*A)), units, V/us) it did not work.  But once I switched to Unit(Standard) it works. 

Page 1 of 1