Skip to main content
1-Visitor
July 7, 2021
Solved

Trying to solve for a variable using iteration and a solve block without previously defining a var.

  • July 7, 2021
  • 2 replies
  • 2158 views

I am trying to solve this equation using iteration and a solve block for Q without previously defining Q as for my application I would not have the value for Q. Am I on the right track here and if not could somebody point out my mistakes? All of my other variables are previously defined and the only thing I don't have defined is Q. I want to be able to spit out a value for Q given all the other variables definitions. Thanks in advance! Below is an attachment of the solve block, I can provide SS for the other variables as needed.

Capture.PNG

Best answer by Fred_Kohlhepp

We don't need no stinking solve block!

Fred_Kohlhepp_0-1625697270905.png

 

2 replies

1-Visitor
July 7, 2021

For refrence, this is my other attempt that I know is in the wrong direction but if it helps anyone:

 

Capture1.PNG

1-Visitor
July 7, 2021

Third attempt is getting closer to what I want but unsure if it is exactly what I want...sorry for the spam but this problem is urgent for me.

Capture3.PNG

25-Diamond I
July 7, 2021

You should attach your worksheet, not just pictures.

And also state which version of Prime you are using.

In your first attempt using a numerical solve block you might have forgotten that you need to define a first guess value for Q.

In the second attempt using the symbolic solve it might be a problem with Primes infamous auto-label feature. Can tell by just seeing the picture, though.

 

EDIT: Haven't seen Fred's response at first. If Q is not real valued, the solve block does not find an answer if the guess value is real. So you would have to use a guess like Q:=1i

 

23-Emerald I
July 7, 2021

We don't need no stinking solve block!

Fred_Kohlhepp_0-1625697270905.png