Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
I dont need all the worksheets in the expensive Vol.1 Worksheets, I just want to see the Custom functions such as matrices to c-code. Are any of these free anywhere or can the custom functions package be purchased separately?
Hi,
This will show you how to get matrices in Prime or Mathcad to C++ code
https://www.ptc.com/en/support/article/CS167203
Article - CS167203
How to create custom functions using C or C++ programs in Mathcad and Mathcad Prime
Modified: 31-Mar-2020
Applies To
Mathcad 14.0 to 15.0
Mathcad Prime 1.0 to 6.0
Description
How to create custom functions using C or C++ programs?
How to build Mathcad DLLs in order to create custom function?
Is it possible to use the custom function in Mathcad Prime?
Cheers
Terry
@terryhendicott wrote:
Hi,
This will show you how to get matrices in Prime or Mathcad to C++ code
https://www.ptc.com/en/support/article/CS167203
Unfortunately the only "information" this support article gives is the suggestion to use the help. I am not sure if this is that helpful enough. Here it is:
Thanks for the responses, PTC help not that usable here. Opinion: You would think that if its in a worksheet package summary, there would be actual worksheets. But all there seems to be is this description of an article that provides no actual article or link to a much more detailed article. I assume you have to buy the whole Vol.1 worksheet package to actually get the information at a cost similar to Prime's base cost.
I shouldn't think that you would find much information on Custom (.DLL) Functions in a package loaded with (Prime) worksheets. Writing custom functions has little to do with ordinary usage of Prime through it's worksheets. The purpose is to extend Prime with your own functions written in a standard (usually C, or C++) programming language, with functionality that cannot be implemented using Prime's worksheet functions and operators, or would become too slow.
Note that all the information you need for writing a Custom Function is in the online reference for Prime (at least, it is for Prime 4).
Here's a part:
Essentially it is no different from writing a custom (.dll) function for Mathcad 11...15.
Some (C) programming experience is required though.
Study the example for 'multiply', then you should be able to write your own function.
In case you get stuck, come to this forum for help.
Success!
Luc