Skip to main content
1-Visitor
Jun 10, 2014 6:26 PM UTC
Solved

Using vectorized solve block to solve for multiple inputs.

Hello,

I am trying to use a solve block to solve the same equation for a range of inputs using the vectorize function. I have had success doing this before (thanks to other threads I have read here!). For some reason on this particular problem I cannot get it to work. If someone might have any suggestions after looking at the attached worksheet it would be great appreciated. In the worksheet I first solve the problem for a single input which works, then I try the multiple inputs but can't get the solver to return anything other than the inital guess.

Thanks,

Mike Einhorn

RichardJAnswer
19-Tanzanite
Jun 10, 2014 6:42 PM UTC

Turn the solve block into a function.

3 replies

RichardJ19-TanzaniteAnswer
19-Tanzanite
Jun 10, 2014 6:42 PM UTC
Einhorn1-VisitorAuthor
1-Visitor
Jun 10, 2014 8:45 PM UTC

Thanks Richard!...and interesting that you didn't have to vectorize the equation. Because it is a function correct?

Thanks again,

Mike Einhorn

Translate
19-Tanzanite
Jun 10, 2014 8:51 PM UTC

You need to vectorize it when you call the function, not when you create it.

Translate