Hello,
I started using Mathematica and Xact a few days ago, so this question might be trivial.
I'm trying to derive the equation for cosmological perturbation in f(R) gravity.
I need both f(R) and derivatives of it f_R(R) and f_{RR}(R) (which are the 1st and 2nd derivatives wrt to R).
ToCannonical keeps giving me the error :
ToCanonical::noident: Unknown expression not canonicalized: (f^\[Prime])[R[Overscript[\[Del], _]]][] .
I do not understand why there's an error when the expression is defined as a scalar.
Any help, either a better implementation of this or making the expression canonical, would be appreciated.
I have attached a basic working example and the full notebook.
Thank you. :)
Tanush