odefunction.plt 283 Bytes
Newer Older
FAGES Francois's avatar
FAGES Francois committed
1
2
3
4
5
6
7
8
9
10
11
12
13
:- use_module(library(plunit)).

:- begin_tests(odefunction).


test('add_function'):-
  clear_model,
  command(present(x,3)),
  command(present(y,2)),
  command(set_parameter(k=0.00001)),
  command(k*[x] for x=>y),
  command(add_function(z=x+y, u=x*y)).

FAGES Francois's avatar
grrrrr    
FAGES Francois committed
14
:- end_tests(odefunction).