Range Function Power Bug

Range Function Power Bug - 消息

#1 已发布: 2021/1/21 15:08:22
Tow Wai Lim

Tow Wai Lim

0个赞,共42个帖子。

组: 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)已下载 1308 次。
#2 已发布: 2021/1/21 16:15:00
Jean Giraud

Jean Giraud

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

组: 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 已发布: 2021/1/21 16:22:18
Tow Wai Lim

Tow Wai Lim

0个赞,共42个帖子。

组: User

I tried to vectorize the following. What have I done wrong?
Page6.sm (5.22 KiB)已下载 1383 次。

Capture9.JPG
#4 已发布: 2021/1/21 16:40:37
Alvaro

Alvaro

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

组: 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 已发布: 2021/1/21 16:43:05
Ruben Sidranski

Ruben Sidranski

17个赞,共465个帖子。

组: 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 已发布: 2021/1/21 16:55:12
Tow Wai Lim

Tow Wai Lim

0个赞,共42个帖子。

组: User

I am trying to plot and integrate, but no luck

Page4.sm (20.72 KiB)已下载 1323 次。
#7 已发布: 2021/1/21 16:59:52
Tow Wai Lim

Tow Wai Lim

0个赞,共42个帖子。

组: User

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

Capture10.JPG
#8 已发布: 2021/1/21 17:04:49
Jean Giraud

Jean Giraud

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

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


#9 已发布: 2021/1/21 17:25:02
Ruben Sidranski

Ruben Sidranski

17个赞,共465个帖子。

组: User

For inspiration. Heat Capacity Function1.sm (20.42 KiB)已下载 1731 次。
Let me know if you cannot open it. Jean had an issue when I posted it yesterday
#10 已发布: 2021/1/22 12:02:43
Jean Giraud

Jean Giraud

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

组: 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
  • 有新帖
  • 无新帖