MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / showValues

Method showValues

src/test/ParserTest.java:24–30  ·  view source on GitHub ↗
(Function fun)

Source from the content-addressed store, hash-verified

22
23 //void showValues(SuryonoParser fun){ // WC: this signature works
24 void showValues(Function fun){ // WC: this signature fails
25 for (int i=0; i<=10; i++) {
26 double x=2*Math.PI*i*0.1;
27 double val = fun.evaluate (x); // parse the function
28 System.out.println("f(x)="+val);
29 }
30 }
31
32 public static void main(String[] args) {
33 new ParserTest();

Callers 1

ParserTestMethod · 0.95

Calls 2

evaluateMethod · 0.65
printlnMethod · 0.65

Tested by

no test coverage detected