Google Groups

Re: Guessing "exact" values


Szabolcs May 21, 2007 3:09 AM
Posted in group: comp.soft-sys.math.mathematica
Murray Eisenberg wrote:
> When I run that code and click the link, my browser shows a "File not
> found!" error page.
>

It is because of the line break in the URL. Make sure that after you
paste it, you remove the spaces which got inserted between ...
"ipcgi/lookup." and "pl?Submit" ...

Szabolcs

> Dana DeLouis wrote:
>> 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",
>>    StringReplace["http://bootes.math.uqam.ca/cgi-bin/ipcgi/lookup.\
>>   pl?Submit=GO+&number=#&lookup_type=simple",
>>      "#" :> ToString[Evaluate[NumberToSearch], InputForm,
>>          NumberMarks -> False]]]
>>
>> The above click shows it might be 2 Pi.
>>
>> For your example, I took the full value:
>> n=10.92477796076938
>>
>> 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
>> fractions.
>>
>> I decided to divided the number by 3.
>>
>> NumberToSearch = 10.92477796076938/3
>> 3.641592653589793
>>
>> If I re-enter the Hyperlink, and click the link, the solution is Pi+1/2.
>> Multiply by 3 to get your equation.
>>
>> Reference:  http://pi.lacim.uqam.ca/eng/
>