|
[Date Index]
[Thread Index]
[Author Index]
Re: Just for fun: Shortest InputForm to achieve a given Kernel error
- To: mathgroup at smc.vnet.net
- Subject: [mg82135] Re: Just for fun: Shortest InputForm to achieve a given Kernel error
- From: Szabolcs HorvÃt <szhorvat at gmail.com>
- Date: Sat, 13 Oct 2007 03:46:45 -0400 (EDT)
- References: <200710100821.EAA26453@smc.vnet.net> <fen7h2$5ju$1@smc.vnet.net>
Two more solutions:
å??æ£å?? wrote:
> I have found 2 answers after some try.
>
> For General::ovfl: 9^99!
> For $IterationLimit::itlim: #0@# &@1
>
> On 10/10/07, Andrew Moylan <andrew.j.moylan at gmail.com> wrote:
>> "1/0" is a string of length 3 which, when interpreted as InputForm (in a
>> clean Kernel), generates a Power::infy error:
>>
>> ToExpression["1/0", InputForm];
>>>> Power::infy: Infinite expression 1/0 encountered.
>> I think this is the shortest string with this property.
>>
>> Here are some other errors and the lengths of the shortest strings I can
>> find to generate them:
>>
>> $RecursionLimit::reclim: Recursion depth of 256 exceeded.
>> Input length: 4
a=2a
>>
>> General::ovfl: Overflow occurred in computation.
>> Input length: 5
>>
>> (Kernel running out of memory)
>> Input length: 5
>>
a=a@a
>> General::unfl: Underflow occurred in computation.
>> Input length: 6
>>
>> $IterationLimit::itlim: Iteration limit of 4096 exceeded.
>> Input length: 7
>>
>> Can you figure out how to generate those errors with input strings of that
>> length? Can you find any *shorter* solutions?
>>
--
Szabolcs
Prev by Date:
Re: Unwanted resize of frontend window
Next by Date:
Re: Strange Manipulate+ContourPlot behavior
Previous by thread:
Re: Just for fun: Shortest InputForm to achieve a given Kernel error
Next by thread:
Strange Manipulate+ContourPlot behavior
|