Skip to main content
1-Visitor
June 26, 2016
Question

error: This value must be a scalar :( HELP

  • June 26, 2016
  • 2 replies
  • 3626 views

Hi I am doing optimizing, and need to minimize the  error below . (by using Minerr in mathcad)

But before that,  problem is this error.

2 replies

1-Visitor
December 21, 2017

Hi @ycho-3, you need to do element by element multiplication for your equations to work. Also, you need to have a simple function for your e-e-t data (see the attached).

23-Emerald IV
December 21, 2017

Note that the original post is 1.5 years old....

 

Luc

 

24-Ruby III
December 21, 2017

Smiley LOL

19-Tanzanite
December 21, 2017

As already pointed out, you need to vectorize the expressions.

 

When using minerr, do not calculate the error. Calculate a vector of residuals, resid:=fitting-experiment, and pass that to minerr. You will get better results.