topic Solve block in PTC Mathcad
https://community.ptc.com/t5/PTC-Mathcad/Solve-block/m-p/723120#M195420
<P>I am pretty new to Mathcad Prime and just learning things. Wanted to know is it possible to get all the possible solutions for the solve block and not just one? </P>
<P> </P>
<P>I have attached worksheet. Thank you for the help </P>
<P><BR />Vic</P>
<P> </P>
<P> </P>Wed, 07 Apr 2021 18:02:55 GMTVR_97819592021-04-07T18:02:55ZSolve block
https://community.ptc.com/t5/PTC-Mathcad/Solve-block/m-p/723120#M195420
<P>I am pretty new to Mathcad Prime and just learning things. Wanted to know is it possible to get all the possible solutions for the solve block and not just one? </P>
<P> </P>
<P>I have attached worksheet. Thank you for the help </P>
<P><BR />Vic</P>
<P> </P>
<P> </P>Wed, 07 Apr 2021 18:02:55 GMThttps://community.ptc.com/t5/PTC-Mathcad/Solve-block/m-p/723120#M195420VR_97819592021-04-07T18:02:55ZRe: Solve block
https://community.ptc.com/t5/PTC-Mathcad/Solve-block/m-p/723147#M195429
<P>A solve block in Prime can only be used to find numerical answers/results. You do not want a list of all possible numerical answers to the equation a^2 <= 49, because that list is infinitely long.</P>
<P>The solution is potentially easier found using the symbolic method (look up symbolic solvers in Prime):</P>
<P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_0-1617824460952.png" style="width: 400px;"><img src="https://community.ptc.com/t5/image/serverpage/image-id/40116i1E5AFBF2A8CB1E45/image-size/medium?v=v2&px=400" role="button" title="LucMeekes_0-1617824460952.png" alt="LucMeekes_0-1617824460952.png" /></span></P>
<P>(In Prime it looks different from the above).</P>
<P>Note that Prime has little to no provisions to work with integer values only. That is, it is difficult towards impossible, to force Prime to produce answer that only have whole numbers.</P>
<P> </P>
<P>Success!<BR />Luc</P>Wed, 07 Apr 2021 19:43:28 GMThttps://community.ptc.com/t5/PTC-Mathcad/Solve-block/m-p/723147#M195429LucMeekes2021-04-07T19:43:28ZRe: Solve block
https://community.ptc.com/t5/PTC-Mathcad/Solve-block/m-p/723266#M195445
<P>Thank you Luc for the information also, when I try to use the solve block with odesolve its not behaving as it should am I doing it right? </P>
<P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VR_9781959_0-1617886809901.png" style="width: 400px;"><img src="https://community.ptc.com/t5/image/serverpage/image-id/40144iA944AC153229673E/image-size/medium?v=v2&px=400" role="button" title="VR_9781959_0-1617886809901.png" alt="VR_9781959_0-1617886809901.png" /></span></P>
<P> </P>
<P>Vic</P>Thu, 08 Apr 2021 13:00:23 GMThttps://community.ptc.com/t5/PTC-Mathcad/Solve-block/m-p/723266#M195445VR_97819592021-04-08T13:00:23ZRe: Solve block
https://community.ptc.com/t5/PTC-Mathcad/Solve-block/m-p/723277#M195446
<P>Why would you use "odesolve" when you have no ODE?</P>
<P>Its unclear to me what you actually are trying to achieve and what kind of result you are expecting.</P>
<P> </P>
<P>You may want to lookup the usage of odesolve in the online help</P>
<P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1617889688906.png" style="width: 400px;"><img src="https://community.ptc.com/t5/image/serverpage/image-id/40148i3AB2E4472B2CE0B5/image-size/medium?v=v2&px=400" role="button" title="Werner_E_0-1617889688906.png" alt="Werner_E_0-1617889688906.png" /></span></P>
<P> </P>Thu, 08 Apr 2021 13:49:50 GMThttps://community.ptc.com/t5/PTC-Mathcad/Solve-block/m-p/723277#M195446Werner_E2021-04-08T13:49:50ZRe: Solve block
https://community.ptc.com/t5/PTC-Mathcad/Solve-block/m-p/723286#M195448
<P>odesolve is for solving ordinary differential equations, as you may guess, and the solve block does not contain an ODE...</P>
<P> </P>Thu, 08 Apr 2021 14:25:30 GMThttps://community.ptc.com/t5/PTC-Mathcad/Solve-block/m-p/723286#M195448MSheykman2021-04-08T14:25:30ZRe: Solve block
https://community.ptc.com/t5/PTC-Mathcad/Solve-block/m-p/723308#M195454
<P>I am looking to expand the result i,e the vector:answer in the example would be of seven integers</P>
<P> </P>
<P>-Also, is it possible to define a number to an integer?</P>
<P> </P>
<P> </P>Thu, 08 Apr 2021 15:35:44 GMThttps://community.ptc.com/t5/PTC-Mathcad/Solve-block/m-p/723308#M195454VR_97819592021-04-08T15:35:44ZRe: Solve block
https://community.ptc.com/t5/PTC-Mathcad/Solve-block/m-p/723326#M195456
<BLOCKQUOTE><HR /><LI-USER uid="382801"></LI-USER> wrote:<BR />
<P>I am looking to expand the result i,e the vector:answer in the example would be of seven integers</P>
<P> </P>
<HR /></BLOCKQUOTE>
<P>Seven? If you really mean only <U>integer</U> solutions, the result must be a vector of 15 values!!</P>
<P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1617899621406.png" style="width: 270px;"><img src="https://community.ptc.com/t5/image/serverpage/image-id/40160iE60ACD390525BE76/image-dimensions/270x318?v=v2" width="270" height="318" role="button" title="Werner_E_0-1617899621406.png" alt="Werner_E_0-1617899621406.png" /></span></P>
<P>But you sure can limit the solutions to positive integers if thats what you are looking for:</P>
<P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1617899758790.png" style="width: 321px;"><img src="https://community.ptc.com/t5/image/serverpage/image-id/40161iD0EF3606317300C5/image-dimensions/321x168?v=v2" width="321" height="168" role="button" title="Werner_E_1-1617899758790.png" alt="Werner_E_1-1617899758790.png" /></span></P>
<P>Unfortunately the above only works in real Mathcad and in Prime up to version 6 (if you chose to use the "Legacy Symbolic Engine", muPad). The new engine built into Prime 7 (Axiom) is less capable than the older one (which in no way was state of the art, either). Here is what you see when you use the new engine:</P>
<P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1617899951634.png" style="width: 400px;"><img src="https://community.ptc.com/t5/image/serverpage/image-id/40162iE4C268A308E11188/image-size/medium?v=v2&px=400" role="button" title="Werner_E_2-1617899951634.png" alt="Werner_E_2-1617899951634.png" /></span></P>
<P>Correct and disappointing at the same time.</P>
<P> </P>
<P> </P>
<BLOCKQUOTE><HR /><BR />
<P>-Also, is it possible to define a number to an integer?</P>
<HR /></BLOCKQUOTE>
<P>Only with assume when you use the symbolic engine, as you have just seen. And very often this modifier is simply ignored by the engine. Prime is not an appropriate tool for diophantic equations.</P>
<P> </P>Thu, 08 Apr 2021 16:44:38 GMThttps://community.ptc.com/t5/PTC-Mathcad/Solve-block/m-p/723326#M195456Werner_E2021-04-08T16:44:38Z