Let's say I have a function $f[x]=[2/x]$

How can I do something like $2f[4]/4$ result in $4/16$, and not $1/4$ or $2/8$?


Related to this.

f[x_] := Internal`RationalNoReduce[2, x];
f[4]*Internal`RationalNoReduce[2, 4]

(* 4/16 *)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.