Skip to main content
1-Visitor
March 5, 2026
Solved

Iterate using

  • March 5, 2026
  • 1 reply
  • 122 views
I am using Mathcad Prime Release 9.0 and Datecode9.0.0.0

Hi, I have a question on: how to use a "solve" function inside a for loop or how to use it for solving variables from arrays or using the solve function inside a solve block? In the solve block, I can use Find or root functions but these methods don't give sometimes the exact solution to the equation on hand. And "solve" works the best for my case. Thank you for your help
    Best answer by terryhendicott

    Hi

    Here is one way using the root() function.

    Have assumed two vectors not defined in the image are all ones.

    Cheers

    Terry

    1 reply

    1-Visitor
    March 5, 2026

    Screenshot 2026-03-05 092407.png

    Here is a screenshot of where I am using the solve function one at a time to get tsat values from 0 through 7. But can this be automated using a for loop or solve block, but by using the "solve" function?

    21-Topaz II
    March 6, 2026

    Hi,

    To save us a lot of typing can you upload the worksheet.  You may need to put the file into a zip archive to upload.

     

    CTR_TAP is not defined in the image.

    X_R_3P is not defined in the image

    In first equation should TP index 0 be used?

     

    Cheers

    Terry