problem



On 07/07/2012 08:59 AM, aishen wrote:
> I have a sagemath program and I would like to get the same in wxmaxima 
> (maxima)
> It's a RLC resonance.
>
> here is the code :
>
> sage--------------------------------------------------------------------------------------------------------------------- 
>
> var('omega w fr')
> R = 1000.0
> L = 1
> C = 1.0e-9
> w = 1/sqrt(L*C)
> plot(abs(1 / (1 + i * omega * R * C - omega * omega * L * C)), (omega, 
> 0, 2 * w),figsize=(4,3))
>
> If someone could do that for me : Many thanks :) 

Try this:

(%i1) R: 1000.0$

(%i2) L: 1$

(%i3) C: 1.0e-9$

(%i4) w: 1/sqrt(L*C)$

(%i5) plot2d(abs(1/(1+%i*omega*R*C-omega*omega*L*C)), [omega,0,2*w])$

Regards,
Jaime