I think you would get the result 950/X² from the input 38/(((x) (x/5) (0.0047625))/(0.0238125)). The division is not associative: (a/b)/c is not the same as a/(b/c), even if the two-dimensional fraction notation obscures this fact with fraction lines of the same length and thickness.