As mentioned by Marcelo, there is no free solution for your specific problem.
But for your very simple program, you could, for example, use Python with matplotlib to solve the problem and generate an executable (you will also have to include some python libraries). It will be absolutely sufficient and will not be much more difficult to write for your tiny program.
ravvy source share