How to force rationals to display as reals in library mode
I do agree that Mathomatic's attempt to maintain numeric values as fractions is useful for achieving greater precision. It certainly is for interactive use of the standalone program.
However in library mode, this feature sometimes stands in the way, because the matho library is often used to avoid having to evaluate expressions inside the calling program, i.e., having to parse numeric results (of the form 65/17) in calling program.
So how can one force expansion of a fraction into a floating point number?
Also, for the docs it would be useful to have a section with additional remarks about library mode, e.g., under exactly what conditions output is generated and how one can test for various error conditions (output = nil or output = empty string or output = error message or output = true result.
Further, I am not sure that the configuration file (.mathomaticrc, even when put in the proper location, inside the build -- I am using XCode) works in library mode (in order to make "set no auto" stick). There appear to be errors after sending a set command to the matho library, but I may be wrongly detecting for no output.
Thanks for looking into this.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Mathomatic Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- George Gesslein II
- Solved:
- Last query:
- Last reply: