On 7/18/24 00:22, Vinayak Vijay wrote:
But here, it looks like the information about the composition of the functions
is not being stored somehow, maybe because it reduces the expressions to the
independent variables ("x" in this case). What change should I make to obtain
dg_dy? The independent variable remains "x" of course.
I do not actually know enough about SD to help with this. The way I read the
code is that you declare x to be an independent variable, whereas y is not.
Intuitively, I would have expected the underlying library to raise an
exception when you try to compute the derivative with regard to anything other
than an independent variable.
I think you'll have to find out what underlying SD library your example is
using, and then read through the documentation of that library to see how to
approach the issue. Alternatively, you can of course define a function g_of_x
and another g_of_y, and depending on whether you want to compute the
derivative with regard to x or y, you choose one or the other.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: [email protected]
www: http://www.math.colostate.edu/~bangerth/
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/5557befe-231b-4026-9518-23087fbec282%40colostate.edu.