topic Re: parametric solution and TOL in PTC Mathcad
https://community.ptc.com/t5/PTC-Mathcad/parametric-solution-and-TOL/m-p/399842#M156978
<HTML><HEAD></HEAD><BODY><P>You can look at the value set in the options dialog box as if its an (invisible) assignment (a normal one, not a global) right at the top of your worksheet. As with any other variable, this definition can be overwritten in the midst of the sheet but this does not change the definition at the top and so does not change the value in the options menu.</P><P></P><P>You see 10^-4 in the menu and this is the valid value of TOL in your sheet up to the line where you define the new value 10^-5. You can't change the intitial default value in the options menu from within the sheet. But if you want to be sure that a specific value is valid from the very beginning and don't want to bother with the menu, you could either place a normal assignment to the very top of the sheet yourself or use a global assignment anywhere els in your sheet. You can override a global assignment anywhere in your sheet by a normal or another global assignment. If you use multiple global assignments then the last one is the one which is valid at the top of the sheet.</P><P></P><P>In other words, no, no special font necessary to change system variables. They behave exactly the same as normal variables. The only difference ist that they are invisibly defined at the very top.</P><P></P><P>WE</P></BODY></HTML>Fri, 04 Sep 2015 15:56:45 GMTWerner_E2015-09-04T15:56:45Zparametric solution and TOL
https://community.ptc.com/t5/PTC-Mathcad/parametric-solution-and-TOL/m-p/399836#M156972
I am using a parametric solution of a solve block within another solve block. I would like to use a smaller TOL for the parametric solution (i.e. the inner problem) than for the outer block. If I set the TOL before creating the solve block for the parametric solution, does the TOLThu, 03 May 2018 15:11:11 GMThttps://community.ptc.com/t5/PTC-Mathcad/parametric-solution-and-TOL/m-p/399836#M156972HarveyHensley2018-05-03T15:11:11ZRe: parametric solution and TOL
https://community.ptc.com/t5/PTC-Mathcad/parametric-solution-and-TOL/m-p/399837#M156973
<HTML><HEAD></HEAD><BODY><BLOCKQUOTE><TABLE border="1"><TBODY><TR><TD>
<P>If I set the TOL before creating the solve block for the parametric solution, does the TOL get set permanently for the parametric solution?</P>
</TD></TR></TBODY></TABLE></BLOCKQUOTE><P>Yes, I think that happens.</P><P>So you could turn your inner solve block into a function, precede its definition by a lower TOL value and thereafter change TOL to a higher value and then define your outer block. Guess this should work. TOL always has to be set at worksheet level, it cannot be set within a program.</P><P></P><P>As TOL is always taken as an absolute value (unfortunately), one additional method could be to define the lower value for TOL and modify the equations in the inner solve block so that they work with and return values with lower magnitude, divided by 10^3 for instance. I'm not sure about this method, though.</P><P></P><P>WE</P></BODY></HTML>Wed, 02 Sep 2015 08:40:03 GMThttps://community.ptc.com/t5/PTC-Mathcad/parametric-solution-and-TOL/m-p/399837#M156973Werner_E2015-09-02T08:40:03ZRe: parametric solution and TOL
https://community.ptc.com/t5/PTC-Mathcad/parametric-solution-and-TOL/m-p/399838#M156974
<HTML><HEAD></HEAD><BODY><BLOCKQUOTE><TABLE border="1"><TBODY><TR><TD>
<P>Werner Exinger wrote:</P>
<P></P>
<P>As TOL is always taken as an absolute value (unfortunately), one additional method could be to define the lower value for TOL and modify the equations in the inner solve block so that they work with and return values with lower magnitude, divided by 10^3 for instance. I'm not sure about this method, though.</P>
<P></P>
<P></P>
</TD></TR></TBODY></TABLE></BLOCKQUOTE><P>I am already trying the method above, but I think you meant to say the following:</P><P></P><P>...define the <SPAN style="text-decoration: underline;">higher</SPAN> value for TOL and modify the equations in the inner solve block...and return values with <SPAN style="text-decoration: underline;">higher</SPAN> magnitude, divided by <SPAN style="text-decoration: underline;">10^-3</SPAN>...</P><P></P><P>This magnifies errors. So if TOL = 0.001, the effective TOL is 10^-6 for the inner block.</P><P></P><P>I guess I'll have to do some tests and compare results to see if the TOL gets "attached" to the parametric solution. It would be my preferred option if it works.</P></BODY></HTML>Wed, 02 Sep 2015 14:27:20 GMThttps://community.ptc.com/t5/PTC-Mathcad/parametric-solution-and-TOL/m-p/399838#M156974HarveyHensley2015-09-02T14:27:20ZRe: parametric solution and TOL
https://community.ptc.com/t5/PTC-Mathcad/parametric-solution-and-TOL/m-p/399839#M156975
<HTML><HEAD></HEAD><BODY><P>You can use <SPAN class="hps">normalization factors for each equation!</SPAN></P></BODY></HTML>Wed, 02 Sep 2015 16:30:01 GMThttps://community.ptc.com/t5/PTC-Mathcad/parametric-solution-and-TOL/m-p/399839#M156975ValeryOchkov2015-09-02T16:30:01ZRe: parametric solution and TOL
https://community.ptc.com/t5/PTC-Mathcad/parametric-solution-and-TOL/m-p/399840#M156976
<HTML><HEAD></HEAD><BODY><BLOCKQUOTE><TABLE border="1"><TBODY><TR><TD>
<P>I am already trying the method above, but I think you meant to say the following:</P>
<P></P>
<P>...define the <SPAN style="text-decoration: underline;">higher</SPAN> value for TOL and modify the equations in the inner solve block...and return values with <SPAN style="text-decoration: underline;">higher</SPAN> magnitude, divided by <SPAN style="text-decoration: underline;">10^-3</SPAN>...</P>
</TD></TR></TBODY></TABLE></BLOCKQUOTE><P>Yes, sorry - thats what I meant.</P></BODY></HTML>Wed, 02 Sep 2015 17:00:26 GMThttps://community.ptc.com/t5/PTC-Mathcad/parametric-solution-and-TOL/m-p/399840#M156976Werner_E2015-09-02T17:00:26ZRe: parametric solution and TOL
https://community.ptc.com/t5/PTC-Mathcad/parametric-solution-and-TOL/m-p/399841#M156977
<HTML><HEAD></HEAD><BODY><P>It only gets more interesting. I was trying to test the TOL permanency and I find that when I set TOL in the worksheet with TOL:= , it does not appear to change in the system variables. As the figure shows, I have set TOL = 10^-5, but the TOOLS window shows 10^-4. Could it be that the TOL variable expects a certain font, because I am using a template that may have a different font for the variables?<IMG alt="TOL_error.png" class="jive-image image-1" src="https://community.ptc.com/legacyfs/online/91426_TOL_error.png" style="width: 620px; height: 421px;" /> </P></BODY></HTML>Fri, 04 Sep 2015 15:16:00 GMThttps://community.ptc.com/t5/PTC-Mathcad/parametric-solution-and-TOL/m-p/399841#M156977HarveyHensley2015-09-04T15:16:00ZRe: parametric solution and TOL
https://community.ptc.com/t5/PTC-Mathcad/parametric-solution-and-TOL/m-p/399842#M156978
<HTML><HEAD></HEAD><BODY><P>You can look at the value set in the options dialog box as if its an (invisible) assignment (a normal one, not a global) right at the top of your worksheet. As with any other variable, this definition can be overwritten in the midst of the sheet but this does not change the definition at the top and so does not change the value in the options menu.</P><P></P><P>You see 10^-4 in the menu and this is the valid value of TOL in your sheet up to the line where you define the new value 10^-5. You can't change the intitial default value in the options menu from within the sheet. But if you want to be sure that a specific value is valid from the very beginning and don't want to bother with the menu, you could either place a normal assignment to the very top of the sheet yourself or use a global assignment anywhere els in your sheet. You can override a global assignment anywhere in your sheet by a normal or another global assignment. If you use multiple global assignments then the last one is the one which is valid at the top of the sheet.</P><P></P><P>In other words, no, no special font necessary to change system variables. They behave exactly the same as normal variables. The only difference ist that they are invisibly defined at the very top.</P><P></P><P>WE</P></BODY></HTML>Fri, 04 Sep 2015 15:56:45 GMThttps://community.ptc.com/t5/PTC-Mathcad/parametric-solution-and-TOL/m-p/399842#M156978Werner_E2015-09-04T15:56:45ZRe: parametric solution and TOL
https://community.ptc.com/t5/PTC-Mathcad/parametric-solution-and-TOL/m-p/399843#M156979
<HTML><HEAD></HEAD><BODY><P>Thanks for the explanation Werner. I didn't realize that the window only shows the initial values for the sheet. Back to my test.</P></BODY></HTML>Fri, 04 Sep 2015 16:08:33 GMThttps://community.ptc.com/t5/PTC-Mathcad/parametric-solution-and-TOL/m-p/399843#M156979HarveyHensley2015-09-04T16:08:33ZRe: parametric solution and TOL
https://community.ptc.com/t5/PTC-Mathcad/parametric-solution-and-TOL/m-p/399844#M156980
<HTML><HEAD></HEAD><BODY><P>I have run the tests and the parametric solution does retain the value of CTOL (and I presume TOL) that was active at the time the solve block was computed. It turns out that my solve block is only affected by CTOL.</P></BODY></HTML>Fri, 04 Sep 2015 16:29:26 GMThttps://community.ptc.com/t5/PTC-Mathcad/parametric-solution-and-TOL/m-p/399844#M156980HarveyHensley2015-09-04T16:29:26Z