Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Just use
(defn div? [d n] (zero? (mod n d)))
Lots of thanks for your kind answer!
See on the internet discussion about rounding or truncating. When I truncate I can be confident with the last digit, not when I round. Furthermore truncating was explicetly asked in the description (with the demanded numbers of decimals) to avoid constant arguing about rounding errors.
You have n steps but
n+1
points so it is natural to divide by this number even if it is supposed without error at y0. Anywayn+1
was given in the description.Besides that I will always pretend that it is better to have a general understanding rather than to have your nose to the ground:-)
My bad; fixed.
Not really sure how to help here. Do you think the description text should contain hints that link to places in the documentation where you can learn these things?