No one is replying, lemme paste the code here:
import sympy as syms
import matplotlib.pyplot as plot
import numpy as linspace
n,t= syms.symbols('n,t')
T= 1
w= 2*syms.pi/T
V=1 # square wave of 1volts with 1second period
Ao= (w/syms.pi)* syms.integrate(V,(t,0,0.5))
An= (w/syms.pi)*syms.integrate(
Whenever it makes sense, you should use assumptions on symbols. Since you
are dealing with a Fourier Series, you should set:
import sympy as syms
import matplotlib.pyplot as plot
import numpy as linspace
n = syms.symbols('n', real=True, integer=True, positive=True)
t = syms.symbols('t', real=True)
Respond to Davide
Hi,
Thanks for this.
1-I want to ask: how do I expand the sigma summation like :
cos+cos2+cos3. etc
2- Also how do I open the plot in a separate window to make it bigger/zoom
etc?
On Wednesday, May 5, 2021 at 1:31:05 PM UTC+1 sandona...@gmail.com wrote:
> Whenever it m
Oh no sorry, I used %matplotlib tk at the start and now it opens the graph
in separate window.(Google groups does not allow to edit messages )
But how to expand the summation series?
On Wednesday, May 5, 2021 at 1:52:16 PM UTC+1 Areeb Sherjil wrote:
> Respond to Davide
>
> Hi,
> Thanks for thi
Use the doit() method, something like the following: f.doit()
Davide.
Il giorno mer 5 mag 2021 alle ore 14:58 Areeb Sherjil <
areebsher...@gmail.com> ha scritto:
> Oh no sorry, I used %matplotlib tk at the start and now it opens the graph
> in separate window.(Google groups does not allow to ed
Thanks Davide!
It works now
On Wednesday, May 5, 2021 at 2:02:48 PM UTC+1 sandona...@gmail.com wrote:
> Use the doit() method, something like the following: f.doit()
>
> Davide.
>
>
> Il giorno mer 5 mag 2021 alle ore 14:58 Areeb Sherjil
> ha scritto:
>
>> Oh no sorry, I used %matplotlib tk a