Range Function Power Bug

Range Function Power Bug - Messages

#1 Posted: 1/21/2021 3:08:22 PM
Tow Wai Lim

Tow Wai Lim

0 likes in 42 posts.

Group: 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 KiB) downloaded 17 time(s).
#2 Posted: 1/21/2021 4:15:00 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 1/21/2021 4:22:18 PM
Tow Wai Lim

Tow Wai Lim

0 likes in 42 posts.

Group: User

I tried to vectorize the following. What have I done wrong?
Page6.sm (5 KiB) downloaded 21 time(s).

Capture9.JPG
#4 Posted: 1/21/2021 4:40:37 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: 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 Posted: 1/21/2021 4:43:05 PM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: 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 Posted: 1/21/2021 4:55:12 PM
Tow Wai Lim

Tow Wai Lim

0 likes in 42 posts.

Group: User

I am trying to plot and integrate, but no luck

Page4.sm (20 KiB) downloaded 21 time(s).
#7 Posted: 1/21/2021 4:59:52 PM
Tow Wai Lim

Tow Wai Lim

0 likes in 42 posts.

Group: User

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

Capture10.JPG
#8 Posted: 1/21/2021 5:04:49 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 21 time(s).


#9 Posted: 1/21/2021 5:25:02 PM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: User

For inspiration. Heat Capacity Function1.sm (20 KiB) downloaded 54 time(s).
Let me know if you cannot open it. Jean had an issue when I posted it yesterday
#10 Posted: 1/22/2021 12:02:43 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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
  • New Posts New Posts
  • No New Posts No New Posts