Skip to main content
12-Amethyst
April 22, 2010
Question

Need insite on compililng functions

  • April 22, 2010
  • 1 reply
  • 5690 views
I am seeking insight on the following:
I believe Mathcad compiles as it goes through a worksheet.

But functions (or programs) that are used over and over, are they compiled only once and reused?

Functions defined in a referenced file; are these compiled when the file is opened, or when the referenced file is come across in the worksheet?

And, as above, are the functions in a referenced file compiled only once or every time used.

I link long files together by referencing the previous file into the current one. The file takes a lot longer to open, but does not need to re-calculate what is in the referenced file, so the current file recalculates quickly. Is it correct to say that the referenced file is compiled and is static?

Thanks in advance for my educate
Could someone please educate me?
Thanks

1 reply

1-Visitor
April 22, 2010
A very good way to view referenced functions is the 5 MB "Creating Amazing Images in Mathcad". From recollection, there are only two sheets in reference but 100's of functions definitions, very quick. A must for best using Mathcad in the sense of referenced functions.

You have lots of questions .

jmG
wayne12-AmethystAuthor
12-Amethyst
April 22, 2010
Thank you jmg,
I am down loading the reference.

I have a lot of questions, but I think a simple explanation is all that is required ( I am not a programmer ). If I write a function or program, and then re-use that function again and again, does Mathcad compile only once, or does it go back to the original definition every time and compile again?
12-Amethyst
April 22, 2010
On 4/22/2010 1:47:28 PM, waynereid wrote:

>If I write a function or program, and then re-use that function again and again, does Mathcad compile only once, or does it go back to the original definition every time and compile again?

Go back and compile again. Just define a constant like a = rnd(2), save and insert this file as reference, you can check that each time that you insrt the reference, the value of a changes.

If you want a function without recompilation, can write an user dll.

Regards. Alvaro.