The tag has no usage guidance.

learn more… | top users | synonyms

16
votes
2answers
275 views

How to implement Bresenham’s algorithm as a system of equations?

Bresenham's line drawing algorithm is usually implemented via loops. But in Mathematica we can take advantage of its ability to solve Diophantine equations. From educational viewpoint it is quite ...
6
votes
3answers
454 views

Code Golf: Least Common Multiple

"CodeGolf" challenge: write the shortest practical Least Common Multiple function that: Does not use built in GCD, LCM or any ...
6
votes
1answer
501 views

Celebration: How to golf a marriage with a prefix free code

We all know a conspicuous member of our community got hitched recently. As most of us are not in Malta, and weren't able to fly there, I thought of a celebration question. Sort of. The challenge is ...
5
votes
6answers
749 views

Make the code shorter for solving Fizz buzz

Here is Fizz buzz Write a program that prints the integers from 1 to 100. But for multiples of 3 print "Fizz" instead of the number and for the multiples of 5 print "Buzz". For numbers which ...