Range Function Power Bug

Range Function Power Bug - Messaggi

#1 Pubblicato: 21/01/2021 15:08:22
Tow Wai Lim

Tow Wai Lim

0 apprezzamenti in 42 post.

Gruppo: User

Hi,

How can I equate power of range to the following? How can we solve this error, anything power should be 1.

When a range is square, the return answer is total of square value.

Capture8.JPG

Page5.sm (9,89 KiB) scaricato 1298 volta(e).
#2 Pubblicato: 21/01/2021 16:15:00
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

How can I equate power of range to the following?
How can we solve this error, anything power should be 1.


As you evaluate over a vector, use the vectorize operator.

VectorEval.PNG
#3 Pubblicato: 21/01/2021 16:22:18
Tow Wai Lim

Tow Wai Lim

0 apprezzamenti in 42 post.

Gruppo: User

I tried to vectorize the following. What have I done wrong?
Page6.sm (5,22 KiB) scaricato 1366 volta(e).

Capture9.JPG
#4 Pubblicato: 21/01/2021 16:40:37
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Wrote

I tried to vectorize the following. What have I done wrong?
....



Hi. There the problem is 0^0, it is undefined, at least in SMath environment, and probably it's the best choice: return an error if appear. That for the vectorization. About w^0, without vectorization, seems that SMath try to do a scalar product, like in w^2. Remember that a^0 = 1 for a <> 0 it's by definition, not by any theorem.

Best regards.
Alvaro.
#5 Pubblicato: 21/01/2021 16:43:05
Ruben Sidranski

Ruben Sidranski

17 apprezzamenti in 465 post.

Gruppo: User

Delete thehat are you trying to do? Everything is defined, yet, you have a range for the answer. Are you looking to plot?
#6 Pubblicato: 21/01/2021 16:55:12
Tow Wai Lim

Tow Wai Lim

0 apprezzamenti in 42 post.

Gruppo: User

I am trying to plot and integrate, but no luck

Page4.sm (20,72 KiB) scaricato 1309 volta(e).
#7 Pubblicato: 21/01/2021 16:59:52
Tow Wai Lim

Tow Wai Lim

0 apprezzamenti in 42 post.

Gruppo: User

I just need to put a very small values instead of zero.

Capture10.JPG
#8 Pubblicato: 21/01/2021 17:04:49
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

I am trying to plot and integrate, but no luck


No luck because NO function, always plot the function you want to integrate.
Pure suggestion attached ... Jean

Page4.sm (35,03 KiB) scaricato 1369 volta(e).


#9 Pubblicato: 21/01/2021 17:25:02
Ruben Sidranski

Ruben Sidranski

17 apprezzamenti in 465 post.

Gruppo: User

For inspiration. Heat Capacity Function1.sm (20,42 KiB) scaricato 1719 volta(e).
Let me know if you cannot open it. Jean had an issue when I posted it yesterday
#10 Pubblicato: 22/01/2021 12:02:43
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

Let me know if you cannot open it.
Jean had an issue when I posted it yesterday


Oh ! Elsid ... wrong format.
Our Win systems are not companions !
Take care ... Jean
  • Nuovi post
  • Nessun nuovo post