The Trunk: KernelTests-nice.262.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: KernelTests-nice.262.mcz

commits-2
Nicolas Cellier uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-nice.262.mcz

==================== Summary ====================

Name: KernelTests-nice.262
Author: nice
Time: 13 March 2014, 1:52:32.328 am
UUID: c70b95a4-48a3-47aa-b9e8-b6abdbf8004f
Ancestors: KernelTests-nice.261

Assert that nthRoot is exact on more cases.
Note how current implementation fails.

=============== Diff against KernelTests-nice.261 ===============

Item was added:
+ ----- Method: IntegerTest>>testNthRootExactness (in category 'tests - mathematical functions') -----
+ testNthRootExactness
+ | inexactRoots largeExactPowersOf6 |
+ largeExactPowersOf6 := (2 to: 100) collect: [:k | k raisedTo: 66].
+ inexactRoots := largeExactPowersOf6 reject: [:e | (e nthRoot: 6) isInteger].
+ self assert: inexactRoots isEmpty description: 'Failed to find the exact 6th root of these numbers'!


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: KernelTests-nice.262.mcz

Stéphane Rollandin
> + largeExactPowersOf6 := (2 to: 100) collect: [:k | k raisedTo: 66].

Shouldn't it be raisedTo: 6 ?

Stef


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: KernelTests-nice.262.mcz

Nicolas Cellier
Yes it is, (k^11)^6
The purpose of (k^11) is to produce rather large integers...


2014-03-13 12:50 GMT+01:00 Stéphane Rollandin <[hidden email]>:
+       largeExactPowersOf6 := (2 to: 100) collect: [:k | k raisedTo: 66].

Shouldn't it be raisedTo: 6 ?

Stef





Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: KernelTests-nice.262.mcz

Stéphane Rollandin
> Yes it is, (k^11)^6
> The purpose of (k^11) is to produce rather large integers...

I see...