Skip to main content
14-Alexandrite
May 11, 2016
Solved

Is there a way to see what is behind a Built in function?

  • May 11, 2016
  • 4 replies
  • 6618 views

I am learning programming in mathcad, I think that a good approach is to see the algorithm of some built in functions. Is there a way to do this?

Best answer by Werner_E

Ruben Alejandro Villarreal Barrios wrote:

I am learning programming in mathcad, I think that a good approach is to see the algorithm of some built in functions. Is there a way to do this?

Unless you have access to the source code of Prime (which is unlikely, I guess) - no.

And it sure won't help you learning programming in Mathcad or Prime, as those built-in functions are not written in Primes programming language.

If you look in the "Custom Functions" folder in the installation directory of Prime, you see an example to implement your own custom function using C as programming language.

You find a little bit of information about custom functions in the help

but again - it will not help you learning how to use Primes worksheet level programming language.

But the help provides some other tutorials on this subject, if you are interested.

WE

4 replies

24-Ruby IV
May 11, 2016

What function do you would like study?

See please in Mathcad 15 what is built in the find function

root function with 4  arguments

Video Link : 1468

root function with 2  arguments

Video Link : 1466

Rkfixed function

Etc

14-Alexandrite
May 11, 2016

Anyone available! But I prefer the solve functions (lsolve, roots, polyroots...) I am using Mathcad Prime. I don't know if I am asking something illegal by the way...

Werner_E25-Diamond IAnswer
25-Diamond I
May 11, 2016

Ruben Alejandro Villarreal Barrios wrote:

I am learning programming in mathcad, I think that a good approach is to see the algorithm of some built in functions. Is there a way to do this?

Unless you have access to the source code of Prime (which is unlikely, I guess) - no.

And it sure won't help you learning programming in Mathcad or Prime, as those built-in functions are not written in Primes programming language.

If you look in the "Custom Functions" folder in the installation directory of Prime, you see an example to implement your own custom function using C as programming language.

You find a little bit of information about custom functions in the help

but again - it will not help you learning how to use Primes worksheet level programming language.

But the help provides some other tutorials on this subject, if you are interested.

WE

23-Emerald IV
May 11, 2016

Back in the days when Mathcad was still owned by Mathsoft AND the handbooks provided with it would provide usefull information, the handbook used to have a section explaining the method that was used to implement a specific mathematical function. Often the explanation would refer to the "Handbook of mathematical functions" by Abramowitz and Stegun.

I think today PTC would state that the implementation of Prime's mathematical functions is their IP (Intellectual Property), and not to be disclosed.

Luc

24-Ruby III
May 17, 2016

In the old "Mathcad 11 User's Guide" has been given a description of all built-in functions of the program with an specifying of algorithms is used in their and provides a reference links. See "Chapter 16 Functions" and "Appendix L: References" (for references details) in attached PDF.