#!/usr/local/bin/ruby -Kuw
∑(*args)
args.inject(:+)
end
√(root)
Math.sqrt(root)
end
∏(args)
args.inject(:*)
end
end
puts ∑(1,2,4) # => 7
puts √(5) # => # 2.2360...
puts ∏(1..5) # 5! :)
Fools ignore complexity. Pragmatists suffer it. Some can avoid it. Geniuses remove it.
Alan Perlis
The best way to predict the future is to invent it.
Alan Kay
Ne découvre de nouvelles terres que celui qui sait quitter tout rivage.
André gide
Qui ne doute pas acquiert peu
Léonard de Vinci
Our life is frittered away by detail... simplify, simplify.
Henry David Thoreau
Aucun commentaire:
Enregistrer un commentaire