MCPcopy Create free account
hub / github.com/JSBSim-Team/jsbsim / make_MathFn

Function make_MathFn

src/math/FGFunction.cpp:171–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169// sin, cos, exp, etc.
170
171FGFunction* make_MathFn(double(*math_fn)(double), FGFDMExec* fdmex, Element* el,
172 const string& prefix, FGPropertyValue* v)
173{
174 auto f = [math_fn](const std::vector<FGParameter_ptr> &p)->double {
175 return math_fn(p[0]->GetValue());
176 };
177 return new aFunc<decltype(f), 1>(f, fdmex, el, prefix, v);
178}
179
180//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
181// Manage the functions with a variable number of arguments.

Callers 1

LoadMethod · 0.85

Calls 1

GetValueMethod · 0.45

Tested by

no test coverage detected