Group Abstract Group Abstract

Message Boards Message Boards

Using Solve[] for Advanced Systems?

Posted 10 years ago
POSTED BY: William Duhe
4 Replies
POSTED BY: Sander Huisman
Posted 10 years ago

Also, how is able to solve for a single variable and not multiple?

POSTED BY: William Duhe
Posted 10 years ago

Just edited the post, I had copied the test in incorrectly - thanks for catching that. I will look into using FindRoot- what if I don't know the initial points to start scanning from though?

FindRoot[{PutTK[95,0.001,\[Sigma],1,\[Gamma],a,b,0.001,.1]==6.45,PutTK[100,0.001,\[Sigma],1,\[Gamma],a,b,0.001,.1]==8.35,PutTK[90,0.001,   \[Sigma],1,\[Gamma],a,b,0.001,.1]==4.93,PutTK[85,0.001,\[Sigma],1,\[Gamma],a,b,0.001,.1]==3.73,PutTK[80,0.001,\[Sigma],1,\[Gamma],a,b,0.001,.1]==2.80},{{\[Sigma],1},{\[Gamma],1},{\[Lambda],1},{a,1},{b,1}}] 

FindRoot gives me the error:

"Encountered a singular Jacobian at the point {[Sigma],[Gamma],\ [Lambda],a,b} = {1.,1.,1.,1.,1.}. Try perturbing the initial point(s)"

POSTED BY: William Duhe

Two problems. One is that Solve has no idea what the function is since it is undefined for symbolic input. So use FindRoot since that can handle a function defined as a black box, that is, only giving a result for explicit numeric input. Next problem is that PutTK is only defined for nine inputs, but four of the five calls have ten inputs.

POSTED BY: Daniel Lichtblau
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard