topic Re: Simple integration by mathcad in PTC Mathcad
https://community.ptc.com/t5/PTC-Mathcad/Simple-integration-by-mathcad/m-p/734394#M196296
<P>Hi Luc,<BR />I apologize for the late reply. If there is a feature that I can rate your answer, I would give 11 out of 10. Your explanation really help me a lot. I solved the problem plus with better understanding. I didn't know there is other way to solve this simple problem with just a click of button, MathCad make my day.<BR />I can't thank you enough Luc . May God bless you and your family. Once again ,thank you and appreciate for the answer. Stay safe.<BR /><BR />Regards,<BR />Adlil</P>Sun, 20 Jun 2021 03:23:56 GMTAB_99706712021-06-20T03:23:56ZSimple integration by mathcad
https://community.ptc.com/t5/PTC-Mathcad/Simple-integration-by-mathcad/m-p/734283#M196284
<P>Hi there, fellow users in MathCad. I'm totally a beginner in MathCad. I don't know why Mathcad said the variable is undefined when I try to solve the integral function. When I put my task's value which are a=-2 and b=4 the integral function said it's value is undefined. <BR /><BR />Where did I do wrong? Is there any other command that I should add ?<BR /><BR />Regards,<BR />Adlil</P>Fri, 18 Jun 2021 05:03:17 GMThttps://community.ptc.com/t5/PTC-Mathcad/Simple-integration-by-mathcad/m-p/734283#M196284AB_99706712021-06-18T05:03:17ZRe: Simple integration by mathcad
https://community.ptc.com/t5/PTC-Mathcad/Simple-integration-by-mathcad/m-p/734297#M196285
<P>Welcome to the forum.</P>
<P> </P>
<P>You should understand that mathcad has two different processors. One is numerical, the other is symbolic.</P>
<P>The numerical processor wants every variable to be numerically defined BEFORE it is used. The symbolic processor is happy to work with symbols, their numeric values don't need to be known (and in many cases it's even better that they're not numerically defined.)</P>
<P>{Also, the numeric processor is deisgned to work with units, like m, s A, V, N etc. The symbolic processor doesn't understand that, mit treats m, s, A etc. as symbols. That's not your problem here, but as a newcomer, it's good to know}</P>
<P> </P>
<P>With your integral, F(x), you've defined it, ( F(x):=.... ) And next you are evaluating it ( F(<FONT color="#FF0000">x</FONT>)= ).</P>
<P>This evaluation is numerical evaluation, you're (implicitly) calling the numeric processor. And x is not numerically defined.</P>
<P>Had you typed F(3), a numerical answer would result (if the integral can be numerically solved).</P>
<P>If you want to know the symbolic answer, you'll have to evaluate the integral symbolically, that is with the -> operator (instead of = ). You get -> by typing [Ctrl .] (Pressing and holding the Ctrl button while tapping the . (the dot or point).</P>
<P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_0-1623999986414.png" style="width: 400px;"><img src="https://community.ptc.com/t5/image/serverpage/image-id/42875i992F26C4A4A41327/image-size/medium?v=v2&px=400" role="button" title="LucMeekes_0-1623999986414.png" alt="LucMeekes_0-1623999986414.png" /></span></P>
<P>Now the result of your integral is independent of x, so instead of function F(x), you could define it as a variable F.</P>
<P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_0-1624000297170.png" style="width: 400px;"><img src="https://community.ptc.com/t5/image/serverpage/image-id/42876iDE58E77F2DB8D9DE/image-size/medium?v=v2&px=400" role="button" title="LucMeekes_0-1624000297170.png" alt="LucMeekes_0-1624000297170.png" /></span></P>
<P>What you also see here is that the numeric and symbolic processors are 'different beasts' sometimes one of the two can't find a solution, while the other can.</P>
<P> </P>
<P>Note that in the remainder of your sheet you actually use the function F as a parameter to your PrPram Trap and Simps functions... So for those, F does need to be defined as a function of one parameter.</P>
<P> </P>
<P>Success!<BR />Luc</P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>Fri, 18 Jun 2021 10:34:15 GMThttps://community.ptc.com/t5/PTC-Mathcad/Simple-integration-by-mathcad/m-p/734297#M196285LucMeekes2021-06-18T10:34:15ZRe: Simple integration by mathcad
https://community.ptc.com/t5/PTC-Mathcad/Simple-integration-by-mathcad/m-p/734394#M196296
<P>Hi Luc,<BR />I apologize for the late reply. If there is a feature that I can rate your answer, I would give 11 out of 10. Your explanation really help me a lot. I solved the problem plus with better understanding. I didn't know there is other way to solve this simple problem with just a click of button, MathCad make my day.<BR />I can't thank you enough Luc . May God bless you and your family. Once again ,thank you and appreciate for the answer. Stay safe.<BR /><BR />Regards,<BR />Adlil</P>Sun, 20 Jun 2021 03:23:56 GMThttps://community.ptc.com/t5/PTC-Mathcad/Simple-integration-by-mathcad/m-p/734394#M196296AB_99706712021-06-20T03:23:56Z