Skip to content

Commit c1ebd7f

Browse files
committed
fix issue rougier#92
1 parent a1cd0b0 commit c1ebd7f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

source/exercises100.ktx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,17 +423,16 @@ np.negative(A,out=A)
423423
np.multiply(A,B,out=A)
424424

425425
< q36
426-
Extract the integer part of a random array using 5 different methods (★★☆)
426+
Extract the integer part of a random array of positive numbers using 4 different methods (★★☆)
427427

428428
< h36
429-
hint: %, np.floor, np.ceil, astype, np.trunc
429+
hint: %, np.floor, astype, np.trunc
430430

431431
< a36
432432
Z = np.random.uniform(0,10,10)
433433

434434
print (Z - Z%1)
435435
print (np.floor(Z))
436-
print (np.ceil(Z)-1)
437436
print (Z.astype(int))
438437
print (np.trunc(Z))
439438

0 commit comments

Comments
 (0)