ValueNode_Logarithm::ValueNode_Logarithm(const ValueBase &x):
LinkableValueNode(x.get_type())
{
+ Vocab ret(get_children_vocab());
+ set_children_vocab(ret);
Real value(x.get(Real()));
Real infinity(999999.0);
Real epsilon(0.000001);
return type==ValueBase::TYPE_REAL;
}
+LinkableValueNode::Vocab
+ValueNode_Logarithm::get_children_vocab_vfunc()const
+{
+ if(children_vocab.size())
+ return children_vocab;
+
+ LinkableValueNode::Vocab ret;
+
+ ret.push_back(ParamDesc(ValueBase(),"link")
+ .set_local_name(_("Link"))
+ .set_description(_("Value node used to calculate the Neperian logarithm"))
+ );
+
+ ret.push_back(ParamDesc(ValueBase(),"epsilon")
+ .set_local_name(_("Epsilon"))
+ .set_description(_("Value used to compare 'link' with zero "))
+ );
+
+ ret.push_back(ParamDesc(ValueBase(),"infinite")
+ .set_local_name(_("Infinite"))
+ .set_description(_("Returned value when result tends to infinite"))
+ );
+
+ return ret;
+}