Problem with integral (again)

Problem with integral (again) - Definite Integral - Mensajes

#1 Publicado: 15/12/2022 12:03:46
Peter Pal Ther

Peter Pal Ther

0 me gusta en 3 mensajes.

Grupo: 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) descargado 1301 vez(es).
#2 Publicado: 15/12/2022 14:31:15
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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) descargado 1292 vez(es).
#3 Publicado: 15/12/2022 15:01:55
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: 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) descargado 1305 vez(es).

Best regards.
Alvaro.
#4 Publicado: 16/12/2022 6:41:10
Peter Pal Ther

Peter Pal Ther

0 me gusta en 3 mensajes.

Grupo: User

Hi Alvaro,

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

Best regards
Pali
#5 Publicado: 16/12/2022 6:42:49
Peter Pal Ther

Peter Pal Ther

0 me gusta en 3 mensajes.

Grupo: User

Wrote


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

HF.sm (84,02 KiB) descargado 1292 vez(es).



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

#6 Publicado: 16/12/2022 9:37:18
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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) descargado 1258 vez(es).
#7 Publicado: 16/12/2022 14:49:11
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: 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.


A 1 usuarios les gustó este mensaje
Davide Carpi 16/12/2022 18:26:00
  • Nuevos mensajes
  • Sin mensajes nuevos