4
$\begingroup$

I'd like to convert geometric figures between Mathematica and GeoGebra.

Does anyone know how to do that?

$\endgroup$
  • 1
    $\begingroup$ have you tried via .eps? $\endgroup$ – Kuba Oct 22 '17 at 7:09
-1
$\begingroup$

Yes, GeoGebra files are in zipped XML so you can replicate GeoGebra drawings in Mathematica - concurrent with every GeoGebra Save.

I wrote a reader of GeoGebra XML and used it for exploring geometry. All symbols in GG can be used in Mathematica except those with "'" or "_" , the latter gets Subscript[].

Symbolic equations with GG symbols can be written in Mathematica. To get the evaluation use the function val[].

{xx, Sqrt[a b - ( a b c^2)/(a + b)^2]} // val

{9.22407, 9.22407}

Or if you don't bother to read values

AB == GD (1 + b/xx) + FD (1 + a/xx) // val

True

I've only tried a few primitive drawings since I was more interested in applying Mathematica computation to geometry {drawings}, but all the data is in the XML.

| improve this answer | |
$\endgroup$
  • 8
    $\begingroup$ Where is the package? Can you show step by step conversion from GG to MMA? $\endgroup$ – Kuba Jun 19 '19 at 8:01
  • 1
    $\begingroup$ "I wrote a reader of GeoGebra XML and used it for exploring geometry." Sounds like a non-trivial undertaking. Would you mind sharing? $\endgroup$ – Szabolcs Nov 17 '19 at 5:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.