Skip to content

Instantly share code, notes, and snippets.

@portnov
Created October 27, 2022 18:42
Show Gist options
  • Save portnov/6390c329dac81b494030b74a22676006 to your computer and use it in GitHub Desktop.
Save portnov/6390c329dac81b494030b74a22676006 to your computer and use it in GitHub Desktop.
(%i1) eq1: a = b + c /d;
c
(%o1) a = - + b
d
(%i2) eq2: e = b - c*d;
(%o2) e = b - c d
(%i3) eliminate([eq1, eq2], [b]);
2
(%o3) [(- d (e - a)) - c d - c]
(%i4) expand(%);
2
(%o4) [(- d e) - c d + a d - c]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment