How to provide inputs, e.g. to the calculate command in library mode
Hi,
I am trying to use the matholibrary, which I installed successfully, and am calling it from Objective-C (from C, really), because my app needs symbolic manipulation. Many commands work. I send a sequence of commands, then obtain the result (see code below).
My question:
Is there a way to send the command calculate its argument values in line, as follows? (maybe there is an option that I don't know of, or syntax, e.g. ":1" and ":2" for the parameters
Command sequence: "x=3*a+
The code: ...
NSArray* mathoCommands=
NSString* mathoAnswer=
NSLog(@"Result from %@ is %@",mathoComman
gives me the following console log:
Result from ( "y^2=9", "solve y" ) is y = 3*sign
...
@implementation ImplementingClass
+(NSString*
NSString *rslt;
char *output; matho_init();
for(NSString* cmd in cmds) {
int cStrLen=[cmd length]+1; char *cmdCStr=
BOOL cStrOK=
if (cStrOK &&matho_
rslt=
free(output);
}
}
return rslt;
}
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Mathomatic Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- vanfrunikenfv130tn
- Solved:
- Last query:
- Last reply: