12.07.2015 Views

Logik und Logische Programmierung Einführung

Logik und Logische Programmierung Einführung

Logik und Logische Programmierung Einführung

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Operational Reading of Logic!∀F,G,U,V. dx(F+G, U+V) ← dx(F,U) ∧ dx(G,V)!Logical meaning:!“If U is the derivative of F and V the derivative of Gthen U+V is the derivative of F+G”!Operational reading:!“To calculate the derivative of F+G one should firstcalculate the derivatives of F and G and composethe results”!Simple (incomplete) translation to C:!void dx(in,out) { match(in,’+’,f,g);dx(f,u); dx(g,v); construct(out,’+’,u,v); }!

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!