aboutsummaryrefslogtreecommitdiffstats
path: root/vmodels/quad_pl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'vmodels/quad_pl.hpp')
-rw-r--r--vmodels/quad_pl.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vmodels/quad_pl.hpp b/vmodels/quad_pl.hpp
index a6a1e57..a0a25a4 100644
--- a/vmodels/quad_pl.hpp
+++ b/vmodels/quad_pl.hpp
@@ -40,7 +40,7 @@ namespace opt_utilities
{
T a=get_element(param,0);
T b=get_element(param,1);
- T c=get_element(param,1);
+ T c=get_element(param,2);
return c*exp(a*log(x)*log(x)+b*log(x));
}