MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Guessing "exact" values

  • To: mathgroup at
  • Subject: [mg76228] Re: Guessing "exact" values
  • From: "Dana DeLouis" <dana.del at>
  • Date: Fri, 18 May 2007 06:09:15 -0400 (EDT)

Hi.  This is not the best solution, but here's one idea I use.
It's not the best solution, because I can't find a way to make Mathematica's
Hyperlinks dynamic.
In other words, once a hyperlink is made (Entered), it appears the address
is locked in stone.
Maybe an expert can jump in and make this dynamic.

A number we know nothing about...(??)
n = 6.283185307179586

Set the variable to something you would like to use.  For me...
NumberToSearch = n; 

Re-Enter this equation (Shift Enter), and then click the link.

Hyperlink["Click Here: Plouffe's Inverter", 
     "#" :> ToString[Evaluate[NumberToSearch], InputForm, 
         NumberMarks -> False]]]

The above click shows it might be 2 Pi.

For your example, I took the full value:

This number didn't work.  Sometimes it won't work if the number is large.
I don't know what "large" means, but the program really works with

I decided to divided the number by 3.

NumberToSearch = 10.92477796076938/3

If I re-enter the Hyperlink, and click the link, the solution is Pi+1/2.
Multiply by 3 to get your equation.

HTH   :>)
Dana DeLouis
Windows XP & Mathematica 6.0 & Help files 5.2 :>~

"Szabolcs" <szhorvat at> wrote in message
news:f2eim0$t2f$1 at
> "Another computer algebra system" has a function, identify(), which 
> attempts to guess the exact expression that evaluates to a particular 
> numerical value.
> Example:
> In[1]:= N[3Pi+3/2,10]
> Out[1]= 10.92477796
> > identify(10.92477796);
>                                   3
>                                   - + 3 Pi
>                                   2
> Is there a package with similar functionality for Mathematica?
> Szabolcs

  • Prev by Date: Re: Using Select
  • Next by Date: Re: Re: Compatibility woes
  • Previous by thread: Re: Guessing "exact" values
  • Next by thread: Re: Re: Guessing "exact" values