Sha256: 11ba944cf8a63eba262334f1cac3bfc2b03e93216def8058bdd1786ab312e325
Contents?: true
Size: 255 Bytes
Versions: 3
Compression:
Stored size: 255 Bytes
Contents
# frozen_string_literal: true module Basic101 class SinFunction < Function def name 'SIN' end def call(runtime, args) check_args args, [BasicNumeric] value = args.first.eval(runtime) value.sin end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
basic101-1.0.2 | lib/basic101/sin_function.rb |
basic101-1.0.1 | lib/basic101/sin_function.rb |
basic101-1.0.0 | lib/basic101/sin_function.rb |