15 bool parse_mm(
const char *source,
int length, mpfr_t cx, mpfr_t cy, mpfr_t cz) {
18 char *source2 = strdup(source);
26 int len = strlen(line);
27 if (len > 2 && line[len - 2] ==
' ') {
29 switch (line[len - 1]) {
30 case '+': sx = line;
break;
31 case 'i': sy = line;
break;
32 case '@': sz = line;
break;
37 mpfr_set_prec(cz, 53);
38 mpfr_set_str(cz, sz, 10, MPFR_RNDN);
46 mpfr_set_str(cx, sx, 10, MPFR_RNDN);
47 mpfr_set_str(cy, sy, 10, MPFR_RNDN);