Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline davidlimtw  
#1 Posted : 21 January 2021 21:08:22(UTC)
davidlimtw


Rank: Member

Groups: Registered
Joined: 07/01/2021(UTC)
Posts: 27
Man
United Kingdom

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. Sad

Capture8.JPG

Page5.sm (10kb) downloaded 2 time(s).

Edited by user 21 January 2021 21:10:36(UTC)  | Reason: Not specified

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Jean Giraud  
#2 Posted : 21 January 2021 22:15:00(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: davidlimtw Go to Quoted Post
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
Offline davidlimtw  
#3 Posted : 21 January 2021 22:22:18(UTC)
davidlimtw


Rank: Member

Groups: Registered
Joined: 07/01/2021(UTC)
Posts: 27
Man
United Kingdom

I tried to vectorize the following. What have I done wrong?
Page6.sm (6kb) downloaded 3 time(s).

Capture9.JPG
Offline Razonar  
#4 Posted : 21 January 2021 22:40:37(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,368
Uruguay

Was thanked: 829 time(s) in 525 post(s)
Originally Posted by: davidlimtw Go to Quoted Post
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.

Edited by user 21 January 2021 22:42:56(UTC)  | Reason: Not specified

Offline ElSid  
#5 Posted : 21 January 2021 22:43:05(UTC)
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 433
Man
United States
Location: USA

Was thanked: 17 time(s) in 15 post(s)
Delete thehat are you trying to do? Everything is defined, yet, you have a range for the answer. Are you looking to plot?
Offline davidlimtw  
#6 Posted : 21 January 2021 22:55:12(UTC)
davidlimtw


Rank: Member

Groups: Registered
Joined: 07/01/2021(UTC)
Posts: 27
Man
United Kingdom

I am trying to plot and integrate, but no luck

Page4.sm (21kb) downloaded 3 time(s).
Offline davidlimtw  
#7 Posted : 21 January 2021 22:59:52(UTC)
davidlimtw


Rank: Member

Groups: Registered
Joined: 07/01/2021(UTC)
Posts: 27
Man
United Kingdom

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

Capture10.JPG
Offline Jean Giraud  
#8 Posted : 21 January 2021 23:04:49(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: davidlimtw Go to Quoted Post
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 (36kb) downloaded 6 time(s).


Offline ElSid  
#9 Posted : 21 January 2021 23:25:02(UTC)
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 433
Man
United States
Location: USA

Was thanked: 17 time(s) in 15 post(s)
For inspiration. Heat Capacity Function1.sm (21kb) downloaded 26 time(s).
Let me know if you cannot open it. Jean had an issue when I posted it yesterday
Offline Jean Giraud  
#10 Posted : 22 January 2021 18:02:43(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: ElSid Go to Quoted Post
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
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.