Re: [sympy] Re: Sympy unable to plot Fourier series, bug

2021-05-05 Thread Areeb Sherjil
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

Re: [sympy] Re: Sympy unable to plot Fourier series, bug

2021-05-05 Thread Davide Sandona'
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

Re: [sympy] Re: Sympy unable to plot Fourier series, bug

2021-05-05 Thread Areeb Sherjil
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

Re: [sympy] Re: Sympy unable to plot Fourier series, bug

2021-05-05 Thread Areeb Sherjil
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

Re: [sympy] Re: Sympy unable to plot Fourier series, bug

2021-05-05 Thread Davide Sandona'
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)

[sympy] Re: Sympy unable to plot Fourier series, bug

2021-05-05 Thread Areeb Sherjil
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(

[sympy] Re: Collect: order of terms

2021-05-05 Thread Chris Smith
perhaps this SO page will help: https://stackoverflow.com/questions/36314035/force-sympy-to-keep-the-order-of-terms On Wednesday, May 5, 2021 at 2:59:18 AM UTC-5 thomas...@gmail.com wrote: > In this task, I am analyzing partial sums of power series. At one place, I > call > exp = collect(expan

Re: [sympy] SymPy in 10 minutes

2021-05-05 Thread Aaron Meurer
Jupyter notebooks are just JSON files so you can examine what metadata is stored in them by opening them in your text editor. I'm guessing neither of these things is a concern since a lot of people use notebooks and I have never heard anyone complain about either issue. Aaron Meurer On Wed, May 5

Re: [sympy] SymPy in 10 minutes

2021-05-05 Thread S.Y. Lee
I have attempted attempt to submit pull requests at sympy_notebooks repository at least to move stuff outside of sympy main repo, but one of the concerns I have is whether the notebook files can store some personal information (Like the creation datetime, user account, some local PC folder struc

[sympy] Collect: order of terms

2021-05-05 Thread Thomas Ligon
In this task, I am analyzing partial sums of power series. At one place, I call exp = collect(expand(exp), m, factor) The expression exp is a partial sum of a power series in powers of m. After this call, I have one more manipulation and then I print the results. For the printout, I would like to