Skip to content

Instantly share code, notes, and snippets.

@mauro3
Created October 23, 2024 19:04
Show Gist options
  • Save mauro3/8bdbd2ffcf93fa1bd9e8f087118f0c7d to your computer and use it in GitHub Desktop.
Save mauro3/8bdbd2ffcf93fa1bd9e8f087118f0c7d to your computer and use it in GitHub Desktop.
ha.jl
# löse aufgabe a/b=0.567567567567567567567567567567567567
# für a und b integer
#
# Plan: b * 0.567567567567567567567567567567567567 muss ein Integer sein, test für viele b's
c = 0.567567567567567567
for b in (1:10000000)
a = b * c
if isapprox(a, round(a), atol= 0.000000001)
@show a, b
break
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment