Skip to main content
12-Amethyst
April 19, 2019
Solved

Getting error 'This value must be scalar'

  • April 19, 2019
  • 2 replies
  • 16188 views

Hi

 

Attached is a calc Im working on. Everything seems OK until I try to enter a value for epsilon/D and then the program keeps popping that it must be a scalar value. Progressively I wish to use the value of Epsilon/D and then calculate Cf. Here also the program keeps saying Cf is not defined. Kindly assist.

 

Regards

Shastry

Best answer by Werner_E

The reason for the error message is that you have typed square brackets and thus had created 1x1 matrices.

Use normal parentheses throughout!

 

Not sure what you mean with your second question. Do you want to define a function for C.f dependent on epsilon?

Or are you trying something like this:

B.png

2 replies

Werner_E25-Diamond IAnswer
25-Diamond I
April 19, 2019

The reason for the error message is that you have typed square brackets and thus had created 1x1 matrices.

Use normal parentheses throughout!

 

Not sure what you mean with your second question. Do you want to define a function for C.f dependent on epsilon?

Or are you trying something like this:

B.png

sshastry12-AmethystAuthor
12-Amethyst
April 20, 2019

Werner,

 

THank you for your reply. Its very helpful. One question. You have used the solve feature. How do you activate this. I don't see it on the GUI of Prime 4. Whats the meaning of float,6. Why 6? Please enlighten me.

 

Regards

Shastry.

sshastry12-AmethystAuthor
12-Amethyst
April 20, 2019

Hi

 

Further to my previous query, I eventually wish to write out an equation for Cf which is dependant on epsilon/D and as epsilon/D keeps varying the program should automatically calculate Cf. How can I achieve this.

 

Shastry

23-Emerald IV
April 19, 2019

As Werner explained, square brackets are used for vectors.

You can make your calculation more compact and less error prone (not needing to retype every calculation for each element) by using vectors.

Prime knows units. Where possible (in this case it is), make use of that.

{Note that using units on z.0.3 will run you into trouble, because a unit other than 1, to the power 0.0706 is something Prime cannot deal with.}

 

Prime 4 sheet attached.

Success!
Luc

 

sshastry12-AmethystAuthor
12-Amethyst
April 20, 2019

Hi

 

Many thanks for your assistance and enlightening me on the features that I can use to simplify my calculations.

 

Sriprakash