Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


2 Pages12>
Options
Go to last post Go to first unread
Offline Ale16595  
#1 Posted : 21 December 2019 13:50:00(UTC)
Ale16595


Rank: Advanced Member

Groups: Registered
Joined: 29/10/2019(UTC)
Posts: 35
Italy
Location: Italy

Hello everyone! I wanted to know if it is possible to solve differential equations with Smath Studio. in particular I would be interested in solving ordinary nonlinear second order differential equations.
Thanks in advance.

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline mkraska  
#2 Posted : 21 December 2019 14:47:59(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
In the interactive handbook (see Tools> Plugins> Interactive books (switch to online gallery)) there is a section

Mathematics> Ordinary Differential Equations.

In the examples subsection you find a variety of non-linear ODEs with numerical and symbolic solutions (based on Maxima plugin).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Ale16595  
#3 Posted : 21 December 2019 15:11:51(UTC)
Ale16595


Rank: Advanced Member

Groups: Registered
Joined: 29/10/2019(UTC)
Posts: 35
Italy
Location: Italy

Thank you very much.
Cheers
Offline Jean Giraud  
#4 Posted : 21 December 2019 17:17:44(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Ale16595 Go to Quoted Post
Hello everyone! I wanted to know if it is possible to solve differential equations with Smath Studio. in particular I would be interested in solving ordinary nonlinear second order differential equations.
Thanks in advance.

Please: attach DE.

Offline Jean Giraud  
#5 Posted : 21 December 2019 20:18:45(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
... here is an example:

ODE Lorenz Attractor Publish.sm (16kb) downloaded 109 time(s).
Offline Ale16595  
#6 Posted : 22 December 2019 15:21:49(UTC)
Ale16595


Rank: Advanced Member

Groups: Registered
Joined: 29/10/2019(UTC)
Posts: 35
Italy
Location: Italy

Hi, the differential equations that i should solve are like the ones in the picture:

ode.png

here is also the .sm file… Documento2 DE.sm (22kb) downloaded 45 time(s).
Offline Jean Giraud  
#7 Posted : 22 December 2019 16:20:10(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Ale16595 Go to Quoted Post
here is also the .sm file

φ''(t) ... is not defined

Documento2 DE.sm (26kb) downloaded 52 time(s).

Alvaro has done lot of work on that one, few days ago
it was about tangent, curvature ... As it look: same system.
Offline Jean Giraud  
#8 Posted : 22 December 2019 16:37:33(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
... revisit your original document 11 days ago.
revisit Alvaro reply.

curvatura (1 doctored).sm (54kb) downloaded 56 time(s).
Offline Ale16595  
#9 Posted : 22 December 2019 20:03:53(UTC)
Ale16595


Rank: Advanced Member

Groups: Registered
Joined: 29/10/2019(UTC)
Posts: 35
Italy
Location: Italy

Yes, the problem is the same as a few days ago. This time, however, I had to modify it slightly and I must be able to derive the psi and phi functions using the differential equations in the figure.
Offline Jean Giraud  
#10 Posted : 22 December 2019 23:11:17(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Ale16595 Go to Quoted Post
Hi, the differential equations that i should solve are like the ones in the picture:

... still undefined wrt φ'(t)
If you can help more: please re-post this document
so to avoid refactoring.
If you have the original work out and solution it
might help converting to Smath

Documento2 DE [explain more].sm (34kb) downloaded 46 time(s).

Offline Ale16595  
#11 Posted : 23 December 2019 18:12:02(UTC)
Ale16595


Rank: Advanced Member

Groups: Registered
Joined: 29/10/2019(UTC)
Posts: 35
Italy
Location: Italy

Why should i define the phi function?
Should I get it by solving the differential equation, or am I wrong?
Offline Jean Giraud  
#12 Posted : 23 December 2019 20:46:23(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Ale16595 Go to Quoted Post
Why should i define the phi function?
Should I get it by solving the differential equation, or am I wrong?

You are right, after the numerical ODE solver you will have
the manipulate the solution depending upon sin/cos
The 2nd term is not a simple coefficient. That induces FinDiff.
So, you have nothing from source ? Pure invention top/bottom.

Documento2 DE [explain more].sm (67kb) downloaded 28 time(s).
Offline Jean Giraud  
#13 Posted : 24 December 2019 00:03:01(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
... a short revisit.

ODE Compendium_1.sm (155kb) downloaded 55 time(s).
Offline Jean Giraud  
#14 Posted : 24 December 2019 05:01:55(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
... that's as far as I can make this project respond.
Not enough insight to go further.

Page57 ODE.sm (13kb) downloaded 45 time(s).
Offline Jean Giraud  
#15 Posted : 24 December 2019 15:02:40(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
... that's as far as I can make this project respond.
Not enough insight to go further.

... your original parameters send the DE solutions in the zillion domain.
Zillion domain is no maths, something does not cut the mustard in there.
Better sanity with other CAS ...

Documento2 DE [explain more].sm (46kb) downloaded 25 time(s).



Offline Ale16595  
#16 Posted : 24 December 2019 19:12:05(UTC)
Ale16595


Rank: Advanced Member

Groups: Registered
Joined: 29/10/2019(UTC)
Posts: 35
Italy
Location: Italy

Hi, thanks for the help and patience.
This is a task I have been assigned and I am not following any source.
If it can be helpful to derive the function phi, I know that:
-for t=0, phi=0
-for t=6.187, phi=0.867 and phi'=0
Offline Jean Giraud  
#17 Posted : 25 December 2019 05:31:28(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Ale16595 Go to Quoted Post
Hi, thanks for the help and patience.
This is a task I have been assigned and I am not following any source.
If it can be helpful to derive the function phi, I know that:
-for t=0, phi=0
-for t=6.187, phi=0.867 and phi'=0

=================================

-for t=6.187, phi=0.867 and phi'=0
we have that from freaking p1 parameter
and obviously phi'=0
for t=0, phi=0 ...that can't be
whereas the system starts @ IC 0.005

1. Make sure the DE as proposed is OK
2. What software the presumed assignment is based on ?
... it could be wrong from the onset !!!

Documento2 DE [explain more].sm (49kb) downloaded 22 time(s).

Offline Ale16595  
#18 Posted : 25 December 2019 13:19:07(UTC)
Ale16595


Rank: Advanced Member

Groups: Registered
Joined: 29/10/2019(UTC)
Posts: 35
Italy
Location: Italy

I modified some values ​​and a relationship because I noticed an error.
The differential equation, on the other hand, should be correct because it comes out of the physical problem it is trying to solve.
As for the assignment of values, I always get them from the physical system knowing more or less the trend of the phi function to be obtained.

If it can help the progress of this function it is the following:
-The phi function starts from 0.147 for t = 0, grows up to a maximum equal to 0.867 for t = 6.187 and finally decreases
-The function phi' instead starts from a value 0 for t = 0, in the interval between t = 0 and t = 6.187 reaches a maximum and then returns to 0 when t = 6.187


Then I would have a question, why does phi' appear in the differential equation and not phi?
ode1.png
Offline Jean Giraud  
#19 Posted : 25 December 2019 16:21:29(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Ale16595 Go to Quoted Post
Then I would have a question, why does phi' appear in the differential equation and not phi?

Good question: you are the Man who proposed the DE phi'.
For your above attempted explanation, you are just presuming.
1. Setup the DE ... as per the assignment
2. Confirm the reference solver software the Originator is using.
Will be back while waiting.
The project is pure blue sky ... sending a fly to Cirus ?
Offline Jean Giraud  
#20 Posted : 26 December 2019 15:51:56(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Does the CannonBall project suggest something ?

Maths Cannonball.sm (30kb) downloaded 67 time(s).
Users browsing this topic
Guest
Similar Topics
A Small Bug in Differential Equations Display (Bugs & Problems)
by PDG 16/06/2018 21:43:24(UTC)
2 Pages12>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.