SciRuby/gnuplotrb

View on GitHub
examples/tons_of_data/generate_data.rb

Summary

Maintainability
A
0 mins
Test Coverage
File.open('tons_of_data', 'w') do |f|
  (1..10000000).each do |x|
    xx = x/100000.0
    yy = Math.exp(Math.sin(xx))
    f.puts "#{xx} #{yy}"
  end
end