Skip to content

numeric calculation problem? #345

@shriram

Description

@shriram

The program

fun square(n): n * n end

fun f(x, y):
  (333.75 * num-expt(y, 6))
  +
  (square(x)
    *
    ((11 * square(x) * square(y))
      -
      num-expt(y, 6)
      -
      (121 * num-expt(y, 4))
      -
      2))
  +
  (5.5 * num-expt(y, 8))
  +
  (x / (2 * y))
end

v = f(77617, 33096)

binds v to -2.3611832414348226e+21.

I may have transcribed this incorrectly.

screen shot 2014-10-09 at 11 14 03 am

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions