pyccel / sympde

Symbolic calculus for partial differential equations (and variational forms)
http://sympde.readthedocs.io/
MIT License
20 stars 4 forks source link

Laplace(1) should be evaluated as 0 #31

Closed yguclu closed 5 years ago

yguclu commented 5 years ago

Every differential operator applied to a number or a constant should return zero.

saidctb commented 5 years ago

the evaluation happens only after calling TerminalExpr and it gives the right answer

ratnania commented 5 years ago

@saidctb it depends. There are some rules that should be implemented by every differential operator. And their behavior w.r.t constants and numbers is one of them