API Reference > Classes > PRC Mathematical Operators > OdPrcMath1dPolynom Class > OdPrcMath1dPolynom Methods > OdPrcMath1dPolynom::evaluate Method
OdPrcMath1dPolynom::evaluate Method
Syntax
C++
virtual double evaluate(double dParam) const;
Parameters 
Description 
double dParam 
[in] A parameter to be evaluated. 

Evaluates a specified parameter using the following formula: 

for (i = 0; i < number_of_coefficients; i++) { output = output + coefficient[i] * pow(param, i); } 

 

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.