differential equations

differential equations - solve differential equations - 消息

#21 已发布: 2019/12/26 18:32:57
Ale16595

Ale16595

0个赞,共35个帖子。

组: User

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 (48.29 KiB)已下载 1193 次。

#22 已发布: 2019/12/26 22:53:48
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

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 (71.7 KiB)已下载 1174 次。
#23 已发布: 2019/12/27 01:03:26
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Wrote

...
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 (48.71 KiB)已下载 1361 次。
motocicleta.pdf (203.43 KiB)已下载 880 次。

Best regards.
Alvaro.
2位用户喜欢此帖子
frapuano 2019/12/27 05:52:00, sergio 2019/12/27 07:39:00
#24 已发布: 2019/12/27 07:45:06
Ale16595

Ale16595

0个赞,共35个帖子。

组: User

My initial conditions are:

-phi(t = 0) = 0.146

-phi'(t = 0) = 0
#25 已发布: 2019/12/27 08:06:25
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Wrote

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 (37.14 KiB)已下载 1345 次。
motocicleta with IC.pdf (136.74 KiB)已下载 891 次。

Best regards.
Alvaro.
3位用户喜欢此帖子
Ale16595 2019/12/27 08:25:00, frapuano 2019/12/27 08:46:00, Вячеслав Мезенцев 2019/12/27 13:43:00
#26 已发布: 2019/12/27 08:26:00
Ale16595

Ale16595

0个赞,共35个帖子。

组: User

Thank you very much,
regards
#27 已发布: 2019/12/27 13:12:31
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

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
1位用户喜欢此帖子
Ale16595 2019/12/27 14:06:00
#28 已发布: 2019/12/27 14:05:46
Ale16595

Ale16595

0个赞,共35个帖子。

组: User

Wrote

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
#29 已发布: 2019/12/27 15:51:08
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

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.
#30 已发布: 2019/12/27 22:26:30
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

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 (27.38 KiB)已下载 1379 次。
#31 已发布: 2019/12/28 18:49:56
Ale16595

Ale16595

0个赞,共35个帖子。

组: User

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 (69.12 KiB)已下载 1393 次。
#32 已发布: 2019/12/28 21:59:18
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

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 (30.82 KiB)已下载 1156 次。

#33 已发布: 2019/12/28 23:19:45
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

You have phi in your document


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

PROJECT [1].sm (21.91 KiB)已下载 1176 次。
#34 已发布: 2019/12/29 09:18:44
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

... lot more maths in there.

PROJECT [1].sm (44.37 KiB)已下载 1181 次。
#35 已发布: 2019/12/29 11:16:00
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Wrote

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 (69.12 KiB)已下载 1393 次。



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 (74.9 KiB)已下载 1409 次。

Best regards.
Alvaro.
1位用户喜欢此帖子
frapuano 2019/12/29 14:27:00
#36 已发布: 2019/12/29 11:21:10
Ale16595

Ale16595

0个赞,共35个帖子。

组: User

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 (57.24 KiB)已下载 1394 次。
#37 已发布: 2019/12/29 14:19:55
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

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 (74.9 KiB)已下载 1389 次。

  • 有新帖
  • 无新帖