cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Translate the entire conversation x

Confuse with Scalar and Vector

KB_14409419
2-Explorer

Confuse with Scalar and Vector

Hi, 

I am new to mathcad and trying to input result from a formula as attached. However, the error red that stating the value must be a scalar and vector. 

How I can fix that? Appreciated to your guys response and help

 

Thanks, 

Kala

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:KB_14409419)

There is no error in the sheet you posted.

 

But I guess that you probably tried to assign d(L) to a variable and saw that error

Werner_E_0-1763665729530.png

Reason is that L is a range, not a vector!

 

What you did worked OK up to Prime 9 because in these older versions the inline evaluation (the "=" you put right after the range definition) converted the range into a vector.

 

Starting with Prime 11 we have a new function "vec" which makes is easy to create a vector using the same values used in a range definition.

When using this vector as argument for your functions you have to apply the vectorization operator (the arrow over the expression):

Werner_E_1-1763665962800.png

 

In case you are using Prime 10 you have to create the vector by other means.

 

 

View solution in original post

1 REPLY 1
Werner_E
25-Diamond I
(To:KB_14409419)

There is no error in the sheet you posted.

 

But I guess that you probably tried to assign d(L) to a variable and saw that error

Werner_E_0-1763665729530.png

Reason is that L is a range, not a vector!

 

What you did worked OK up to Prime 9 because in these older versions the inline evaluation (the "=" you put right after the range definition) converted the range into a vector.

 

Starting with Prime 11 we have a new function "vec" which makes is easy to create a vector using the same values used in a range definition.

When using this vector as argument for your functions you have to apply the vectorization operator (the arrow over the expression):

Werner_E_1-1763665962800.png

 

In case you are using Prime 10 you have to create the vector by other means.

 

 

Announcements

Top Tags