Re: [sympy] Diffgeom needs some major rethinking

2024-04-09 Thread Davide Pittet
That's what I was thinking. I opened an issue as you suggested to discuss this. Davide Pittet On Mon, Apr 8, 2024 at 8:46 PM Aaron Meurer wrote: > I would open an issue to discuss this, if you haven't already. These > sorts of issues relating to what Add class is used t

Re: [sympy] Diffgeom needs some major rethinking

2024-04-08 Thread Davide Pittet
ointed out on GitHub. Davide Pittet Il giorno lunedì 8 aprile 2024 alle 10:06:46 UTC+2 asme...@gmail.com ha scritto: > Your contributions are definitely welcome, although it would be a good > idea to first lay out exactly what changes you want to make, either > here or on an issue. If

[sympy] Diffgeom needs some major rethinking

2024-04-07 Thread Davide Pittet
guidance with the code, primarely on the direction we want to follow. Davide Pittet -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@google

Re: [sympy] Google Summer of Code

2023-02-28 Thread Davide Sandona'
(next GSoCs). Davide. Il giorno mar 28 feb 2023 alle ore 13:48 Alan Bromborsky < abrombo...@gmail.com> ha scritto: > Since you interest is in plotting I wonders if you are familiar with the > following software - > > https://asymptote.sourceforge.io/ > > I have been using it a

Re: [sympy] Google Summer of Code

2023-02-28 Thread Davide Sandona'
Hello Aaron, I'm Davide Sandonà, the developer of the SymPy Plot Backend module ( https://github.com/Davide-sd/sympy-plot-backends). I've edited the plotting module section in the GSoC-ideas page, and added my name as a mentor. Quoting the page: > If you are willing to mento

Re: [sympy] Lambdify - performance using sympy as the module

2021-09-15 Thread Davide Sandona'
Thanks Oscar for the wonderful clarification! I rerun my code with SYMPY_USE_CACHE=no, now the results make much more sense. [image: lambdify-no-cache.png] Davide. Il giorno mer 15 set 2021 alle ore 15:14 Oscar Benjamin < oscar.j.benja...@gmail.com> ha scritto: > > On Wed, 15 Sep

Re: [sympy] Lambdify - performance using sympy as the module

2021-09-15 Thread Davide Sandona'
odule + data type. I guess the results depend on the machine being used. This one has been generated on an old processor. I'll try to see what a modern processor is going to produce. [image: lambdify.png] Davide. Il giorno mer 15 set 2021 alle ore 01:37 Aaron Meurer ha scritto: > On

Re: [sympy] Cylindrical polar unit vectors

2021-08-13 Thread Davide Sandona'
By the way, what are the differences between sympy.vector and sympy.physics.vector ? Why two different modules? Davide. Il giorno ven 13 ago 2021 alle ore 15:06 Davide Sandona' < sandona.dav...@gmail.com> ha scritto: > Although the scalars are r, theta and z the unit vectors are

Re: [sympy] Cylindrical polar unit vectors

2021-08-13 Thread Davide Sandona'
27;t work and examples that could be improved (in terms of user experience) in order to improve our comprehension of what needs to be fixed, eventually preparing the way for a future GSoC. [1] https://github.com/sympy/sympy/blob/master/sympy/vector/coordsysrect.py#L180 Davide. Il giorno ven 13 ag

Re: [sympy] Basic plotting problem

2021-08-07 Thread Davide Sandona'
Hello Davide, In order to use Qt5 you need to install the following dependency: pip install PyQt5 After that it should work fine! Davide. Il giorno sab 7 ago 2021 alle ore 12:40 David Bailey ha scritto: > Dear All, > > Has anyone else encountered this problem - which seemed to st

Re: [sympy] Problem with adding support at location with decimal values

2021-07-05 Thread Davide Sandona'
I suppose you are referring to R4.5000. This is a way to extract the forces/moments from the above equation: fs = list(b.load.free_symbols) R45, R0, M0 = fs[1:] M0, R0, R45 Now you can create a substitution dictionary and compute the load at a given location. Davide. Il giorno lun 5 lug

Re: [sympy] Equivalent mathematica implementation of Fourier transform relevant functions in sympy.

2021-05-22 Thread Davide Sandona'
ttps://docs.scipy.org/doc/scipy/reference/fft.html Davide. Il giorno sab 22 mag 2021 alle ore 13:56 hongy...@gmail.com < hongyi.z...@gmail.com> ha scritto: > Wolfram Mathematica has so many Fourier transform relevant functions, say, > FourierDST, FourierDCT, and so on. I'm cu

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

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

2021-05-05 Thread Davide Sandona'
n,1,5))+ syms.Sum(Bn*syms.sin(n*w*t),(n,1,5)) f At this point, the expression f looks like can be simplified. Then: syms.plot(f.simplify(), (t, 0, 4*T)) Davide. Il giorno mer 5 mag 2021 alle ore 14:07 Areeb Sherjil < areebsher...@gmail.com> ha scritto: > No one is replying, lemme past

Re: [sympy] Plotting module

2021-05-04 Thread Davide Sandona'
rrors in the notebook just comment the lines out. Davide. Il giorno mar 4 mag 2021 alle ore 01:41 Aaron Meurer ha scritto: > Also I would suggest setting up some sort of Binder for the notebooks > so that people can try this out without having to install everything. > > Aaron M

Re: [sympy] SymPy subs().evalf() vs evalf(subs=dict(...))

2020-10-12 Thread Davide Sandona'
Hello Oscar, why is the float approximation of Rational('2.4') more precise of Float('2.4')? Davide. Il giorno lun 12 ott 2020 alle ore 14:14 Oscar Benjamin < oscar.j.benja...@gmail.com> ha scritto: > Hi, > > The evalf function is intended to compute

Re: [sympy] Trying to understand SymPy patterns

2020-09-19 Thread Davide Sandona'
his: f, g = symbols("f, g", cls=Function) a, b, c = symbols("a:c") expr = f(a + 2 * b + c) expr.replace(f, g) Davide. Il giorno sab 19 set 2020 alle ore 21:46 David Bailey ha scritto: > Dear All, > > I was hoping to use SymPy patterns to perform a transformation equiv

Re: [sympy] Re: Fourier Expansion

2020-08-25 Thread Davide Sandona'
ied a sawtooth wave and it works great! Thank you again! Davide. Il giorno mar 25 ago 2020 alle ore 18:48 mikhae...@umontpellier.fr < mikhael.my...@umontpellier.fr> ha scritto: > Dear Sandona, > > I am not a skilled Sympy user. However, I guess the fact that you do not > give the per

[sympy] Fourier Expansion

2020-08-25 Thread Davide Sandona'
Hello everyone, Today I decided to refresh my knowledge of Fourier Expansion. I tried to use Sympy but I'm not sure if the result is correct or if I did something wrong, so I need a fresh pair of eyes on this :) I was following the "Fourier Series of a Square Wave" in the Wolfram documentation

Re: [sympy] Simplification of equations

2020-07-26 Thread Davide Sandona'
to represent an equation, take a look at the source code of this pull-request [1]. It's not perfect, but it is a starting point; with that class Equation, you can apply the same mathematical operation to both sides simultaneously. [1] https://github.com/sympy/sympy/pull/19479 Davide. Il g

Re: [sympy] lambdify list of arguments converted silently, why not throw a warning?

2020-07-09 Thread Davide Sandona'
gument are sorted alphabetically. You can easily see the list of arguments by printing signature. Davide. Il giorno gio 9 lug 2020 alle ore 11:08 Roberto < franceschini.robe...@gmail.com> ha scritto: > I have seen that lambdify wants a list for the arguments to be treated as > symbols.

[sympy] AccumulationBounds vs Interval

2020-06-24 Thread Davide Sandona'
`SetExpr` which should allow to do the same with set objects... Thank you for your time, Davide. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an emai

Re: [sympy] Assumptions modules

2020-06-11 Thread Davide Sandona'
Thank you Oscar for this really exhaustive answer! You clarified all my doubts. Davide. Il giorno lun 8 giu 2020 alle ore 00:08 Oscar Benjamin < oscar.j.benja...@gmail.com> ha scritto: > Hi Davide, > > I'll answer your questions one by one and then summarise the situation

[sympy] Assumptions modules

2020-06-06 Thread Davide Sandona'
on of the new module? Where is it not implemented? Thank you for your time, Davide. [1] https://groups.google.com/forum/#!searchin/sympy/assumptions|sort:date/sympy/AJVZdWnYQww/1VmnUmVEAAAJ -- You received this message because you are subscribed to the Google Groups "sympy" group.

[sympy] Vector Expression

2020-04-03 Thread Davide Sandona'
understand what the problem is and suggest corrective actions? Thanks! [1] https://github.com/sympy/sympy/issues/18987 [2] https://github.com/Davide-sd/sympy_vector_expressions -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubs

[sympy] Problem with Beam3D

2018-12-20 Thread Davide
Hello everybody, I am trying to use Beam3D function but I bumped into this issue. I tried this branch of code from the example list to minimize my errors : from sympy.physics.continuum_mechanics.beam import Beam3D from sympy import symbols l, E, G, I, A, x = symbols('l, E, G, I, A, x') b = Beam3

[sympy] Re: Sympy Beam question

2018-12-07 Thread Davide
Thank you; I've tried your way and seems working but as you said I am not able to plot. What do you think about my last message (I values of different beams must to be not equal if you use "fixed" as joint). Technically talking there is no sense in connecting beam with same characteristics, ne

[sympy] Re: Sympy Beam question

2018-12-07 Thread Davide
I've made another try with this: from sympy.physics.continuum_mechanics.beam import Beam from sympy import symbols E=500 I = 10 l = 1 P=10 R1, M1, R2, R3 = symbols('R1 M1 R2 R3') b1 = Beam(2*l, E, I) b2 = Beam(2*l, E, I) b = b1.join(b2, "fixed") b.apply_load(M1, 0, -2) b.apply_load(R1, 0, -1) b.ap

[sympy] Re: Sympy Beam question

2018-12-07 Thread davide papale
, 4, -1) b.apply_load(R1, 0, -1) b.apply_load(R2, 0, -2) b.bc_slope = [(0, 0)] b.bc_deflection = [(0, 0)] b.solve_for_reaction_loads(R1, R2) b.load b.slope() b.deflection() b.plot_deflection() Il giorno giovedì 6 dicembre 2018 19:10:15 UTC+1, Jashan ha scritto: > > Hi Davide > > Tha

[sympy] Sympy Beam question

2018-12-06 Thread davide papale
Hello everbody, I have the following problem: I need to study the bending problem for a drive shaft. A drive shaft changes its section area many times axially, so E and I axially change too; I thought to use the join(beam, via='fixed') method to do that, connecting many beams each other. Even t