back to list

C code

🔗Gene Ward Smith <gwsmith@svpal.org>

1/13/2006 8:18:29 PM

How would C be as a lingua franca? Maple can translate Maple code into
C, Fortran, or Java. Which would be best, if I wanted to use this
feature to present an algorithm like Herman did?

🔗Herman Miller <hmiller@IO.COM>

1/13/2006 8:41:50 PM

Gene Ward Smith wrote:
> How would C be as a lingua franca? Maple can translate Maple code into
> C, Fortran, or Java. Which would be best, if I wanted to use this
> feature to present an algorithm like Herman did?

I can read Fortran, although it's been a very long time since I used it for anything (approaching 20 years...). I don't know about Java, but I'd guess that it's similar enough to C++ that I should be able to figure out what it's doing.

🔗Carl Lumma <ekin@lumma.org>

1/13/2006 10:06:35 PM

>How would C be as a lingua franca? Maple can translate Maple code into
>C, Fortran, or Java. Which would be best, if I wanted to use this
>feature to present an algorithm like Herman did?

Why not take an example function and post all three versions. Then
people can vote.

-Carl

🔗Graham Breed <gbreed@gmail.com>

1/14/2006 3:45:29 AM

Gene Ward Smith wrote:
> How would C be as a lingua franca? Maple can translate Maple code into
> C, Fortran, or Java. Which would be best, if I wanted to use this
> feature to present an algorithm like Herman did?

C is the Lingua Franca in the sense that most other languages can talk to it. For ease of understanding, machine generated code isn't usually the best.

Graham

🔗wallyesterpaulrus <perlich@aya.yale.edu>

1/19/2006 5:33:21 PM

--- In tuning-math@yahoogroups.com, "Gene Ward Smith" <gwsmith@s...>
wrote:
>
> How would C be as a lingua franca? Maple can translate Maple code into
> C, Fortran, or Java. Which would be best, if I wanted to use this
> feature to present an algorithm like Herman did?

Of these, I've only used Fortran, and then very little. The vast
majority of my programming has been in Matlab and Basic.