We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The example in the Second Derivatives subsection places the annotation on the wrong function.
function f … annotation(derivative=df, derivative(order=2)=ddf); end f;
This is covered in §12.7 of the Modelica spec: https://modelica.org/documents/ModelicaSpec32Revision2.pdf, Where they give the example
function foo0 annotation(derivative=foo1); end foo0; function foo1 annotation(derivative(order=2)=foo2); end foo1; function foo2 end foo2;
Translated back onto your example, the derivative(order=2)=ddf annotation should be in the function df, rather than in f.
derivative(order=2)=ddf
df
f
The body of the text in the spec does not make this entirely clear, but there are some lengthy discussions about it in relevant github issues.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The example in the Second Derivatives subsection places the annotation on the wrong function.
This is covered in §12.7 of the Modelica spec: https://modelica.org/documents/ModelicaSpec32Revision2.pdf,
Where they give the example
Translated back onto your example, the
derivative(order=2)=ddf
annotation should be in the functiondf
, rather than inf
.The body of the text in the spec does not make this entirely clear, but there are some lengthy discussions about it
in relevant github issues.
The text was updated successfully, but these errors were encountered: