Numeric integration boundary assignation

Numeric integration boundary assignation - Is it a bug? - Messaggi

#1 Pubblicato: 20/04/2019 12:05:19
Guy Payeur

Guy Payeur

2 apprezzamenti in 21 post.

Gruppo: User

Hello,

I was writing an example and meet a possible issue.

Look at the attached file, is it normal to not being able to assign directly t.1 and t.n to the integral interval?

ISERROR QUESTION MARK.sm (14,67 KiB) scaricato 1188 volta(e).

2019-04-20 11_03_05-SMath Studio - [ISERROR QUESTION MARK.sm_].png

2019-04-20 11_04_01-SMath Studio - [ISERROR QUESTION MARK.sm_].png

Thank you
#2 Pubblicato: 20/04/2019 12:37:52
sergio

sergio

127 apprezzamenti in 342 post.

Gruppo: User

attention: you used "t" both as a vector and as an integration variable
integ.png

sergio
1 utenti hanno apprezzato questo post
frapuano 20/04/2019 14:49:00
#3 Pubblicato: 20/04/2019 15:04:11
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

I was writing an example and meet a possible issue.


Like this ...

Cumul.PNG

ISERROR QUESTION MARK.sm (16,64 KiB) scaricato 1190 volta(e).
1 utenti hanno apprezzato questo post
sergio 20/04/2019 15:40:00
#4 Pubblicato: 23/04/2019 12:45:50
Guy Payeur

Guy Payeur

2 apprezzamenti in 21 post.

Gruppo: User

Thank you Jean for your example of cumulative integration. That was my next step :-)

Still, I found that the integration variable is not quite independent (local) to the integral function. Should it be the case?

2019-04-23 11_44_33-SMath Studio - [ISERROR QUESTION MARK_2.sm].png

See the attached file.ISERROR QUESTION MARK_2.sm (16,42 KiB) scaricato 1216 volta(e).
#5 Pubblicato: 23/04/2019 14:46:43
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Wrote

Thank you Jean for your example of cumulative integration. That was my next step :-)

Still, I found that the integration variable is not quite independent (local) to the integral function. Should it be the case?



Hi. It isn't in other software, like maple. Usually it must to be an undefined name:

Clipboard01.gif

Best regards
Alvaro.
1 utenti hanno apprezzato questo post
frapuano 23/04/2019 15:20:00
#6 Pubblicato: 23/04/2019 16:09:05
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

Still, I found that the integration variable is not quite independent (local) to the integral function.


Yes, like in Mathcad, in the wild domain of integration
Doctored in red, attached ... Cheers ... Jean

IntegrateGuy.PNG

ISERROR QUESTION MARK_2.sm (18,49 KiB) scaricato 1238 volta(e).


#7 Pubblicato: 24/04/2019 00:31:11
Guy Payeur

Guy Payeur

2 apprezzamenti in 21 post.

Gruppo: User

Using wild value for x axis brought plots that look a lot better. Thank you Jean.

I guess that integration range meant not to be mixed with the integration variable. That does not disturb the calculation, but was only a bit counter intuitive.

Thanks for all (Jean, Alvaro and Sergio)

ISERROR QUESTION MARK_3.sm (57,66 KiB) scaricato 1174 volta(e).
#8 Pubblicato: 24/04/2019 08:36:49
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

I guess that integration range meant not to be mixed with the integration variable. That does not disturb the calculation, but was only a bit counter intuitive.


Same in Mathcad/Mathsoft. Read more in the attached from Drummondville.
Salut Voisin ! .. Jean

Integrate Compendium_000 Indefinite.sm (10,57 KiB) scaricato 1199 volta(e).

#9 Pubblicato: 24/04/2019 09:53:25
Guy Payeur

Guy Payeur

2 apprezzamenti in 21 post.

Gruppo: User

2019-04-24 08_33_40-SMath Studio - [Integrate Compendium_000 Indefinite.sm_].png

Ok, so this worked because 'x' is the variable name for the vanishing iterator.


2019-04-24 08_35_16-SMath Studio - [Integrate Compendium_000 Indefinite.sm_].png

Also worked because 'z' is a passing variable that will be iterated by 'x' in the plot.


2019-04-24 08_39_00-SMath Studio - [Integrate Compendium_000 Indefinite.sm_].png

Would you explain why [-2..2] is 222 pixels? Should this be correlated to the window resolution? And not being a fixed value?

Thank you
#10 Pubblicato: 24/04/2019 12:41:41
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

Would you explain why [-2..2] is 222 pixels? Should this be correlated to the window resolution? And not being a fixed value?


I copied the plot from another document, as it was then calipered.
Smath native 2D plot are adjustable by pixel in both directions.
Very nice to get pleasant looking side by side up/down plots.
Mathcad used to be not by pixel, rater by ½ pica. Thus not fine
trace and never none two of same size.
The other gorgeous plots are OriginLab. Not a function plotter
but plot XY data joined by spline(s) on pixels.
When you Shift+@ you get the native Smath canvas 232 150
Windows screen resolution is 96 ppi [PixelPerInch].
Thus eye fatigue on long term use because the internal
EyeFourierTransform must convert to the normal eye resolution
"normalized" 1200 ppi.

Read more about indefinite integral plots ... Jean

Integrate Compendium_000 Indefinite.sm (19,59 KiB) scaricato 1193 volta(e).
#11 Pubblicato: 24/04/2019 23:40:05
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

Would you explain why [-2..2] is 222 pixels? Should this be correlated to the window resolution? And not being a fixed value?


Another interesting visit ... It would be on prescribed pixels
if the cumulative would be discretized instead of scalar.
In the attached the f(x) looks monster big to calculates, not so.
f(x) is given in the Smath executable format.

Integrate_00000 [ RECAST Scalar].sm (13,27 KiB) scaricato 1006 volta(e).
  • Nuovi post
  • Nessun nuovo post