Problem with integral (again)

Problem with integral (again) - Definite Integral - 消息

#1 已发布: 2022/12/15 12:03:46
Peter Pal Ther

Peter Pal Ther

0个赞,共3个帖子。

组: User

Hi!

I have the following code, and the last integral is not solved by the program. I did not find any solution.
Can you explain me, what is the problem?

Thanks a lot!
Bye
Pali

HF.sm (72.86 KiB)已下载 1313 次。
#2 已发布: 2022/12/15 14:31:15
Jean Giraud

Jean Giraud

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

组: User

Wrote

I have the following code, and the last integral is not solved by the program. I did not find any solution.
Can you explain me, what is the problem ?


In some way doctored in red. Setup the integrator scalar wrt 'x'.
Cheers ... Jean.

HF.sm (84.02 KiB)已下载 1333 次。
#3 已发布: 2022/12/15 15:01:55
Alvaro

Alvaro

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

组: User

Wrote


Can you explain me, what is the problem?



Hi Pali. At this time, you can't use if(..) inside an integral, use cases(...) instead. Also, SMath's integral new version can handle better units.

HF.sm (73.15 KiB)已下载 1325 次。

Best regards.
Alvaro.
#4 已发布: 2022/12/16 06:41:10
Peter Pal Ther

Peter Pal Ther

0个赞,共3个帖子。

组: User

Hi Alvaro,

thanks a lot! It works fine. Thank you.
What do you mean: new version of integral?

Best regards
Pali
#5 已发布: 2022/12/16 06:42:49
Peter Pal Ther

Peter Pal Ther

0个赞,共3个帖子。

组: User

Wrote


In some way doctored in red. Setup the integrator scalar wrt 'x'.
Cheers ... Jean.

HF.sm (84.02 KiB)已下载 1333 次。



I do not really understand what you did, but thanks for your help as well.

#6 已发布: 2022/12/16 09:37:18
Jean Giraud

Jean Giraud

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

组: User

I do not really understand what you did
1. recast if/else ► if/otherwise.
2. made ∫ scalar wrt 'x' for local/vectorize

HFshort.sm (23.97 KiB)已下载 1282 次。
#7 已发布: 2022/12/16 14:49:11
Alvaro

Alvaro

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

组: User

Wrote


What do you mean: new version of integral?



Hi Pali. In the "new" version of the integral it puts the units of the result correctly, while before some corrections had to be made. From "list of changes" here: Defined Integral supports units now.

Best regards.
Alvaro.


1位用户喜欢此帖子
Davide Carpi 2022/12/16 18:26:00
  • 有新帖
  • 无新帖