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

Notification

Icon
Error

Login


3 Pages<123
Options
Go to last post Go to first unread
Offline SteelCat  
#41 Posted : 04 June 2020 17:09:37(UTC)
SteelCat


Rank: Advanced Member

Groups: Registered
Joined: 02/05/2020(UTC)
Posts: 41
Italy

Was thanked: 3 time(s) in 3 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: SteelCat Go to Quoted Post
Sorry Jean, no graph, only values...

... from enough values: we can best approximate/graph !!!


I'll try to explain myself better: a value for each unknown, so 3 values...
Physics is like sex. Sure, it may give some practical results, but that’s not why we do it. (R. Feynman)
Offline Jean Giraud  
#42 Posted : 05 June 2020 02:05:53(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: SteelCat Go to Quoted Post
I'll try to explain myself better: a value for each unknown, so 3 values...

You mentioned Jacobian could solve.
Then, tabulate row wise those Jacobian 3 values ?
Offline SteelCat  
#43 Posted : 07 June 2020 13:12:36(UTC)
SteelCat


Rank: Advanced Member

Groups: Registered
Joined: 02/05/2020(UTC)
Posts: 41
Italy

Was thanked: 3 time(s) in 3 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Maybe you can try to beat the horse otherwise.

Forum discretization example OTHERWISE.sm (121kb) downloaded 16 time(s).


Jean this screenshot comes from your example.

Screenshot otherwise.PNG

You are right, Ed, CLS and As are all independent.

My unknown are eG, Xx and Xy. NEd, MxEd and MyEd are assigned, I can't change their values. So I do not understand your suggestion: how can I have a better estimates of unknown throught U,V,W?

In yellow I reported the solution of the sistem from my textbook (found using Excel and Mathcad): equations values are quite close to zero, so the procedure works correctly. It seems that the only way to refine the solution, is to manually change the guessed values... not very nice Dry
Physics is like sex. Sure, it may give some practical results, but that’s not why we do it. (R. Feynman)
Offline SteelCat  
#44 Posted : 07 June 2020 19:41:47(UTC)
SteelCat


Rank: Advanced Member

Groups: Registered
Joined: 02/05/2020(UTC)
Posts: 41
Italy

Was thanked: 3 time(s) in 3 post(s)
Originally Posted by: Razonar Go to Quoted Post
Hi. In the attached, a numerical procedure for double integrals using rkfixed ode solver.

With some improvements maybe this idea can be used instead sums. Also, it can be modified for accept units.

Forum example w-o units_4-BIS.sm (65kb) downloaded 21 time(s).

Best regards.
Alvaro.


Using rkfixed it do not end. I'll try using your RK23...

Edited by user 07 June 2020 21:04:30(UTC)  | Reason: Not specified

Physics is like sex. Sure, it may give some practical results, but that’s not why we do it. (R. Feynman)
Offline SteelCat  
#45 Posted : 07 June 2020 21:07:38(UTC)
SteelCat


Rank: Advanced Member

Groups: Registered
Joined: 02/05/2020(UTC)
Posts: 41
Italy

Was thanked: 3 time(s) in 3 post(s)
Originally Posted by: SteelCat Go to Quoted Post
Originally Posted by: Razonar Go to Quoted Post
Hi. In the attached, a numerical procedure for double integrals using rkfixed ode solver.

With some improvements maybe this idea can be used instead sums. Also, it can be modified for accept units.

Forum example w-o units_4-BIS.sm (65kb) downloaded 21 time(s).

Best regards.
Alvaro.


Using rkfixed it do not end. I'll try using your RK23...


The RK23 procedure it's very fast but I obtain a strange solution.
I used also al_rkadapt but the solver do not ends...

Forum example w-o units_4-RK23.sm (73kb) downloaded 14 time(s).
Forum example w-o units_4-alRK.sm (62kb) downloaded 12 time(s).

Physics is like sex. Sure, it may give some practical results, but that’s not why we do it. (R. Feynman)
Offline Jean Giraud  
#46 Posted : 08 June 2020 03:42: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)
Your last today message has disappeared ???
It happens sometimes ... ?
You can solve for either or all X,Y,Z
from some given conditions [U,V,W].
The problem is ill posed from the onset.
Only trig functions are approximated in radians.
Otherwise, maths are units less.
Some solvers are exclusive of units, others have reserved
variable name. Thus: eradicate units and subscript gyzmas.
Can't find variables, units don't match ...
Can you plot the innermost integral like usual ?
If you can't => there is no project yet.

Solve XYZ [UVW].PNG
Offline SteelCat  
#47 Posted : 08 June 2020 10:06:47(UTC)
SteelCat


Rank: Advanced Member

Groups: Registered
Joined: 02/05/2020(UTC)
Posts: 41
Italy

Was thanked: 3 time(s) in 3 post(s)
Originally Posted by: SteelCat Go to Quoted Post
Originally Posted by: SteelCat Go to Quoted Post
Originally Posted by: Razonar Go to Quoted Post
Hi. In the attached, a numerical procedure for double integrals using rkfixed ode solver.

With some improvements maybe this idea can be used instead sums. Also, it can be modified for accept units.

Forum example w-o units_4-BIS.sm (65kb) downloaded 21 time(s).

Best regards.
Alvaro.


Using rkfixed it do not end. I'll try using your RK23...


The RK23 procedure it's very fast but I obtain a strange solution.
I used also al_rkadapt but the solver do not ends...

Forum example w-o units_4-RK23.sm (73kb) downloaded 14 time(s).
Forum example w-o units_4-alRK.sm (62kb) downloaded 12 time(s).



It seems that unkonown variables were lost with this numerical procedure
Physics is like sex. Sure, it may give some practical results, but that’s not why we do it. (R. Feynman)
Offline Razonar  
#48 Posted : 08 June 2020 11:26:21(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: SteelCat Go to Quoted Post


...
It seems that unkonown variables were lost with this numerical procedure


Hi. Yes, that's what probably it's happen. I try different configurations but can't find none good enough. You can avoid the evaluation at the time of the definition by addint the line command:

Clipboard05.jpg

Same thing for use DInt function.

My experience for the civil engineering worksheets is that the best choice is use heaviside step for piecewise functions instead inequalities or if and symbolic evaluation for the integrals because in mathcad the numerical procedures for evaluating piecewise integrals are not good. But this can't be done in SMath. Here you can read an example about this problem (there are others about civil eng calculus, but can't fin them): https://community.ptc.co...ction/td-p/124048/page/2

I'm also try to analyze the answer from Martin about using Maxima with heaviside, but again can't get a practical solution, here for the use of solve. Looks that in Maxima, like in Mathcad Prime, there are not correspondence between heaviside in symbolics with the numerical procedures. And this can't be a surprise: heaviside isn't a function, and can't be numerically evaluate like functions.

For a pure numerical application I guess that you need to found a numerical procedure that can handle discontinuities above the integral sign. But for double integrals this could be very slow or inaccurate, like RK23 with a low number of iterations.

Another option could be pass as parameters for the numerical procedure the values of the jumps and integrate between them.

Best regards.
Alvaro.
Offline Jean Giraud  
#49 Posted : 08 June 2020 16:38:16(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)
... group the solutions.

Forum discretization example OTHERWISE.sm (133kb) downloaded 18 time(s).

Offline Lucho  
#50 Posted : 21 June 2021 05:57:39(UTC)
Lucho

Rank: Newbie

Groups: Registered
Joined: 08/06/2021(UTC)
Posts: 3
Man
Chile
Location: Valparaiso

Originally Posted by: SteelCat Go to Quoted Post
Hello everyone,
I would like to solve a system of two equations in two variables (x, y) which contain defined integrals with other two variables (t, z for example).

The functions seem to work properly, but why does Smath also recognize as unknowns the fictitious variables into the integrals?
I can't solve the system....


Thanks.

Prova funzione.sm (10kb) downloaded 36 time(s).


I don0t know if you got this response, but using Algsys provided in the Máxima plugin I could resolve your problem
Offline Jean Giraud  
#51 Posted : 21 June 2021 14:56:15(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: Lucho Go to Quoted Post
I don0t know if you got this response, but using Algsys provided in the Máxima plugin I could resolve your problem

...... Post # 1
Hello everyone,
I would like to solve a system of two equations in two variables (x, y) which contain defined integrals with other two variables (t, z for example).

The functions seem to work properly, but why does Smath also recognize as unknowns the fictitious variables into the integrals ?
I can't solve the system....

The setup is ill posed for solving intersection of two
functions f(x,y) ... g(x,y) this last one missing.
g(x,y) can be anything crossing f(x,y) at least once.

Page3 Prova funzione.sm (17kb) downloaded 5 time(s).
Offline Jean Giraud  
#52 Posted : 21 June 2021 17:03:39(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: Lucho Go to Quoted Post
I don't know if you got this response, but using Algsys provided in the Máxima plugin I could resolve your problem

What's wrong/missing from native Smath ?

Solve FindRoot [f(x,y) ... g(x,y)].sm (16kb) downloaded 11 time(s).

Users browsing this topic
Guest
3 Pages<123
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.