Skip to main content
1-Visitor
Question

Problem with a fuction

in this program for the temperature, i have the error "this value must a vector", Please help me

6 replies

Werner_E
25-Diamond I

In my opinion your program is far too large and clutterd and should be split into parts.

The error is thrown at this line

because A is not a vector but a 3 x 3 matrix (and would require tw indices zo access elements).

The argument vector A is overwritten by your program here

and is a 3 x 3 matrix because you made the variable a a 3 x 3 matrix here:

Regards Werner

Translate
-MFra-
21-Topaz II

There are many products poorly written. That is, to make the product, you have not used the product operator. The program is full of such errors.

The dot corresponding to the product is sometimes seen and sometimes not. It seems to me a mistake.

Bye

zbs:

Translate
Werner_E
25-Diamond I

F.M. wrote:

There are many products poorly written. That is, to make the product, you have not used the product operator.

Implicit vs explicit multipication should not do any harm at all. Its sure not responsible for the error message reported.

WE

Translate
-MFra-
21-Topaz II

thank you!

Translate

The Value A must be a vector, but in the program A is calculated from matrix a.

Translate