TransWikia.com

How to make Mathematica treat y/x as a one variable?

Mathematica Asked by JakubL on January 30, 2021

I would like to make for example: $frac{partialfrac{2y}{x}}{partialfrac{y}{x}}$. However, when I put it into Mathematica as D[2y/x,{y/x}] it does not recognize y/x as a one variable? Is there any way how to do it?

One Answer

Try this:

expr1 = Inactivate[D[2 y/x, y/x], D] /. y :> z*x

enter image description here

Then

Activate[expr1]

(*   2   *)

Have fun!

Answered by Alexei Boulbitch on January 30, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP