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)
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 sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.