Numeric integration boundary assignation

Numeric integration boundary assignation - Is it a bug? - 消息

#1 已发布: 2019/4/20 12:05:19
Guy Payeur

Guy Payeur

2个赞,共21个帖子。

组: 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)已下载 1203 次。

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 已发布: 2019/4/20 12:37:52
sergio

sergio

127个赞,共342个帖子。

组: User

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

sergio
1位用户喜欢此帖子
frapuano 2019/4/20 14:49:00
#3 已发布: 2019/4/20 15:04:11
Jean Giraud

Jean Giraud

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

组: User

Wrote

I was writing an example and meet a possible issue.


Like this ...

Cumul.PNG

ISERROR QUESTION MARK.sm (16.64 KiB)已下载 1202 次。
1位用户喜欢此帖子
sergio 2019/4/20 15:40:00
#4 已发布: 2019/4/23 12:45:50
Guy Payeur

Guy Payeur

2个赞,共21个帖子。

组: 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)已下载 1225 次。
#5 已发布: 2019/4/23 14:46:43
Alvaro

Alvaro

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

组: 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位用户喜欢此帖子
frapuano 2019/4/23 15:20:00
#6 已发布: 2019/4/23 16:09:05
Jean Giraud

Jean Giraud

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

组: 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)已下载 1245 次。


#7 已发布: 2019/4/24 00:31:11
Guy Payeur

Guy Payeur

2个赞,共21个帖子。

组: 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)已下载 1180 次。
#8 已发布: 2019/4/24 08:36:49
Jean Giraud

Jean Giraud

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

组: 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)已下载 1211 次。

#9 已发布: 2019/4/24 09:53:25
Guy Payeur

Guy Payeur

2个赞,共21个帖子。

组: 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 已发布: 2019/4/24 12:41:41
Jean Giraud

Jean Giraud

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

组: 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)已下载 1206 次。
#11 已发布: 2019/4/24 23:40:05
Jean Giraud

Jean Giraud

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

组: 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)已下载 1017 次。
  • 有新帖
  • 无新帖