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$?
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityLet'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 *)