Skip to main content
1-Visitor
December 24, 2014
Question

Mathcad Prime 3 - string to equation conversion

  • December 24, 2014
  • 1 reply
  • 12844 views

Hi,

For long time, I was looking for a way to convert an eqaution in the form of a string into a Mathcad equation. I thought that it can be done with Mathcad Prime 3. However, I have no programming experince with Mathcad.

I have mathematical equations saved in Notepad in Windows. They are rather long equations. I don't want to manually convert them into Mathcad since it is not practical. In Mathcad Prime I have realized that if I write an equation in double quotation, delete the double quotations and replace the math operators (+, -, *, /) manually afterwards, then Mathcad treats it as equation. I was hoping that a program can be written in Mathcad Prime that takes an equation in the form of string as an input, replaces the math operators; then Mathcad Prime treats the resultant expression as equation. Please see the attached Mathcad Prime 3 file.

Thanks for the help.

Mark.

1 reply

24-Ruby IV
December 24, 2014

I have used a long time for this text boxes of Mathcad 11

See please one example http://twtmas.mpei.ac.ru/mas/worksheets/Euler.mcd

We can convert this files into Prime.

1-Visitor
December 24, 2014

Valery,

It looks like my problem can be solved by programming in Mathcad Prime. Is it possible that you write a program in MC Prime 3 to solve my problem? Thanks.

Mark.

19-Tanzanite
December 24, 2014

You can do almost the same thing in Mathcad 15. Type "1" to get a math region, paste a+b+c after the 1, delete the 1 and change the operators.

In principle a string could be changed to a math region in Mathcad 12 or later (including all versions of Prime) by editing the XML of the file. Writing a program (an external program; I see no way to do it from within Mathcad) would be a very large amount of work though.