How can I use MATLAB’s Symbolic Toolkit to symbolically evaluate derivatives from C or C++?
How can I use MATLAB’s Symbolic Toolkit to symbolically evaluate derivatives from C or
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s a working example, in
C, along with withMakefilefor gcc\Linux. If anybody can provide build instructions for Windows or Mac, please do.First the
Ccode:If you need to use the expression, instead of merely echoing it, you will have to write your own parser. But since it’s a simple C expression (with the
math.hfunctions) it is fairly trivial.And here’s my Makefile, nothing fancy .. just remember to set your paths appropriately.
And finally a quick demo: