On Sunday, February 5, 2017 at 12:27:51 AM UTC, HG wrote:
>
> Hi, 
> I can't find where are the mistakes ? 
> It says it's about floating ... It representes two waves 
>   Any help ? 
> Best 
> Henri 
>
> var("ct omega t") 
> y = function("y")(t) 
> de = y + r*ct*diff(y,t) == sin(omega * t) 
>
what is the meaning of r in this line? Is it a constant?

Loading this in sage results in 
TypeError: For implementing multiplication, provide the method '_mul_' for 
R Interpreter resp. ct

(that is it assumes that 'r' stands for R interface...)

 

> des = desolve(de,[y,t]);des 
> des2 = (des.substitute(ct == 0.1)).full_simplify() 
> df(r,ct,omega,t) = des2 
> r = 1000 
> c = 0.5e-6 
> f = 440 
> omega = 2*pi*f 
> pa = 
> plot(sin(omega*t),(t,0,.005),rgbcolor=('#800000'),axes_labels=['time','v']) 
>
> pb = plot(df(r,c,omega,t),(t,0,.005),rgbcolor=('#008000')) 
> lbl = text("$f = %.0f Hz \,r = %.0f \Omega \, c = %.1f {\mu}f$" 
>   % (f,r,c*1e6),(.0025,1.2),fontsize=12,rgbcolor='black') 
> show(pa+pb+lbl,figsize=(4,3)) 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to