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

Method saddle

src/org/opensourcephysics/display2d/TestData.java:41–44  ·  view source on GitHub ↗

Saddle function centered at x=0 and y=0.

(double x, double y)

Source from the content-addressed store, hash-verified

39 * Saddle function centered at x=0 and y=0.
40 */
41 public static double saddle(double x, double y) {
42 double rSqr = x*x-y*y;
43 return Math.exp(rSqr);
44 }
45
46 /**
47 * Generate a dipole scalar field.

Callers

nothing calls this directly

Calls 1

expMethod · 0.80

Tested by

no test coverage detected