-#include <iostream>
-#include <stdexcept>
-
-#include "ginac.h"
-
-// binary arithmetic operators ex with ex
-
-ex operator+(ex const & lh, ex const & rh)
-{
- debugmsg("operator+(ex,ex)",LOGLEVEL_OPERATOR);
- return lh.exadd(rh);
-}
-
-ex operator-(ex const & lh, ex const & rh)
-{
- debugmsg("operator-(ex,ex)",LOGLEVEL_OPERATOR);
- return lh.exadd(rh.exmul(exMINUSONE()));
-}
-
-ex operator*(ex const & lh, ex const & rh)
-{
- debugmsg("operator*(ex,ex)",LOGLEVEL_OPERATOR);
- return lh.exmul(rh);
-}
-
-ex operator/(ex const & lh, ex const & rh)
-{
- debugmsg("operator*(ex,ex)",LOGLEVEL_OPERATOR);
- return lh.exmul(power(rh,exMINUSONE()));
-}
-
-ex operator%(ex const & lh, ex const & rh)
-{
- debugmsg("operator%(ex,ex)",LOGLEVEL_OPERATOR);
- return lh.exncmul(rh);
-}
-
-/*
-
-// binary arithmetic operators ex with numeric
-
-ex operator+(ex const & lh, numeric const & rh)
-{
- debugmsg("operator+(ex,numeric)",LOGLEVEL_OPERATOR);
- return lh+ex(rh);
-}