Skip to main content
9 events
when toggle format what by license comment
Apr 11, 2013 at 10:40 comment added Jacob Akkerboom @Xerxes here it is possibly also interesting to note that Hold[Divide[a,b]]//FullForm -> Hold[Divide[a,b]] (so that it is a bit confusing that "/" in the help points to Divide). But maybe you already realized this.
Mar 4, 2013 at 16:47 comment added Xerxes @RolfMertig I think that conversion happens later. Consider FullForm[{1/2,Hold[1/2]}]: (* List[Rational[1, 2], Hold[Times[1, Power[2, -1]]]] *)
Mar 4, 2013 at 10:25 comment added Rolf Mertig @Xerxes if you type 1/2 it is converted to Rational[1,2]
Mar 4, 2013 at 5:08 vote accept RandomBits
Mar 4, 2013 at 0:56 comment added Xerxes I see what you mean, but this is a bigger problem with the way Mathematica treats input. When you type 1/2, Mathematica sees Times[1,Power[2,-1]]. There's nothing like a Divide produced, as you might think, so there's no way to discriminate between the two inputs you gave.
Mar 4, 2013 at 0:30 comment added RandomBits I got it to work for the given example, but now it seems to convert everything that it can with a negative power. 1/2 comes out as 2^-1.
Mar 3, 2013 at 22:07 comment added RandomBits This looks appealing, but it will take me a little time to understand it and implement it.
Mar 3, 2013 at 21:50 comment added Mr.Wizard I see you already implemented what I alluded to in my answer. +1
Mar 3, 2013 at 21:30 history answered Xerxes CC BY-SA 3.0