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

Notification

Icon
Error

Login


2 Pages<12
Options
Go to last post Go to first unread
Offline Ale16595  
#21 Posted : 27 December 2019 00:32:57(UTC)
Ale16595


Rank: Advanced Member

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

Hi, sorry but I have practically no experience with this program and I find it difficult to understand the functions.
If you can please explain the various steps to be able to solve the differential equation in the picture.
I am interested in deriving the function phi (t), what do you need to know to solve the differential equation?
Thanks for your patience
odd.png

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

Offline Jean Giraud  
#22 Posted : 27 December 2019 04:53:48(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
sorry but I have practically no experience with this program and I find it difficult to understand the functions.
If you can please explain the various steps to be able to solve the differential equation in the picture.
I am interested in deriving the function phi (t), what do you need to know to solve the differential equation?
T

The setup to numerical DE solver is same as Mathcad,
even superior as it takes the parameters as vector.
Use p[1,2,3] for those parameters.
Up to what you proposed before: you don't have a DE
Those parameters are non-sense as they send the system in the zillion domain. Get that DE from the teacher, a bit of abstract would help.

NOT DE.PNG

Documento2 DE [explain more] (25).sm (72kb) downloaded 10 time(s).
Offline Razonar  
#23 Posted : 27 December 2019 07:03:26(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: Ale16595 Go to Quoted Post
...
I am interested in deriving the function phi (t), what do you need to know to solve the differential equation?
Thanks for your patience
odd.png


Hi. Usually we want know the ode and it's initial conditions. In your case you have boundary conditions, which can be solved by the shooting method.

Hope this helps.

motocicleta.sm (49kb) downloaded 21 time(s).
motocicleta.pdf (204kb) downloaded 20 time(s).

Best regards.
Alvaro.
thanks 2 users thanked Razonar for this useful post.
on 27/12/2019(UTC),  on 27/12/2019(UTC)
Offline Ale16595  
#24 Posted : 27 December 2019 13:45:06(UTC)
Ale16595


Rank: Advanced Member

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

My initial conditions are:

-phi(t = 0) = 0.146

-phi'(t = 0) = 0
Offline Razonar  
#25 Posted : 27 December 2019 14:06:25(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: Ale16595 Go to Quoted Post
My initial conditions are:

-phi(t = 0) = 0.146

-phi'(t = 0) = 0


For a Cauchy problem it's more easy.

motocicleta with IC.sm (38kb) downloaded 25 time(s).
motocicleta with IC.pdf (137kb) downloaded 25 time(s).

Best regards.
Alvaro.
thanks 3 users thanked Razonar for this useful post.
on 27/12/2019(UTC),  on 27/12/2019(UTC),  on 27/12/2019(UTC)
Offline Ale16595  
#26 Posted : 27 December 2019 14:26:00(UTC)
Ale16595


Rank: Advanced Member

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

Thank you very much,
regards
Offline Jean Giraud  
#27 Posted : 27 December 2019 19:12:31(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)
This is an offer ... accept/reject ... go back to "square zero"
1. What maths are given/invented: a formula ?
2. From that formula, what is next
So, you have a formula and an objective project,
i.e: a pretty short work sheet not yet circular in the blue.
Jean
thanks 1 user thanked Jean Giraud for this useful post.
on 27/12/2019(UTC)
Offline Ale16595  
#28 Posted : 27 December 2019 20:05:46(UTC)
Ale16595


Rank: Advanced Member

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

Originally Posted by: Jean Giraud Go to Quoted Post
This is an offer ... accept/reject ... go back to "square zero"
1. What maths are given/invented: a formula ?
2. From that formula, what is next
So, you have a formula and an objective project,
i.e: a pretty short work sheet not yet circular in the blue.
Jean

I appreciate the advice. I'm trying to learn
Offline Jean Giraud  
#29 Posted : 27 December 2019 21:51:08(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
I appreciate the advice. I'm trying to learn

Just give the formula that you were given.
or make an image from source ... learning is after.
Offline Jean Giraud  
#30 Posted : 28 December 2019 04:26:30(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)
Read more about ODE ... just an initiating visit.
These two examples are Cauchy integration. They have no formal symbolic.
A discrete integration is possible via the module rkf4(y0,x0,x1,n,f).
From there: easy to get the discrete derivative.
Jean

ODE Cauchy Project.sm (28kb) downloaded 20 time(s).
Offline Ale16595  
#31 Posted : 29 December 2019 00:49:56(UTC)
Ale16595


Rank: Advanced Member

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

Hi, sorry if I bother you again. I'm trying to integrate a function, the function in question is psi''(t) in order to derive psi'(t).
I tried using Simpson and Romberg's recursive methods, but without getting a solution.
Where am I wrong?

PROJECT.sm (70kb) downloaded 18 time(s).
Offline Jean Giraud  
#32 Posted : 29 December 2019 03:59:18(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, sorry if I bother you again. I'm trying to integrate a function, the function in question is psi''(t) in order to derive psi'(t).

You have phi in your document ... psi is a built-in function.
So, if phi''(t) is the 2nd derivative ... then the derivative
is simply the integral. To expedite fast: done discrete.
If you have questions: please re-post this document.
Cheers ... Jean.

PROJECT [1].sm (31kb) downloaded 11 time(s).

Offline Jean Giraud  
#33 Posted : 29 December 2019 05:19: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)
Originally Posted by: Jean Giraud Go to Quoted Post
You have phi in your document

.... in fact you have PSI''(t).
Maple does not find an explicit integral.

PROJECT [1].sm (22kb) downloaded 15 time(s).
Offline Jean Giraud  
#34 Posted : 29 December 2019 15:18: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)
... lot more maths in there.

PROJECT [1].sm (45kb) downloaded 10 time(s).
Offline Razonar  
#35 Posted : 29 December 2019 17:16:00(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: Ale16595 Go to Quoted Post
Hi, sorry if I bother you again. I'm trying to integrate a function, the function in question is psi''(t) in order to derive psi'(t).
I tried using Simpson and Romberg's recursive methods, but without getting a solution.
Where am I wrong?

PROJECT.sm (70kb) downloaded 18 time(s).


Hi. You can use any Runge Kutta solver for integration.

Clipboard01.gif

Also, you can use SMath int procedure, but it's very (very) slow:

Clipboard02.gif

For the theory, remember that you can integrate (with definite integrals) both sides of an equation and get an equality too, which don't work with derivatives.

PROJECT.sm (75kb) downloaded 17 time(s).

Best regards.
Alvaro.
thanks 1 user thanked Razonar for this useful post.
on 29/12/2019(UTC)
Offline Ale16595  
#36 Posted : 29 December 2019 17:21:10(UTC)
Ale16595


Rank: Advanced Member

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

Hi, I have calculated the function psi '(t) through dn_GearsBDF.
But now I can't calculate the ratio in the picture.
square matrix.png

The error says, "The matrix must be square"
PROJECT.sm (58kb) downloaded 11 time(s).
Offline Jean Giraud  
#37 Posted : 29 December 2019 20:19: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)
Originally Posted by: Ale16595 Go to Quoted Post
Hi, I have calculated the function psi '(t) through dn_GearsBDF.
But now I can't calculate the ratio in the picture.

Result from numerical ODE solvers is a data set.
Generate an interpolation scalar to 'x' ... then plot.
@ the end of the document ... more questions: -this one.

PROJECT (1).sm (75kb) downloaded 20 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 Pages<12
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.