Opened 6 years ago

Closed 5 years ago

#290 closed defect (fixed)

Proposed square procedure

Reported by: cowan Owned by: cowan
Priority: major Milestone:
Component: WG1 - Numerics Keywords:

Description (last modified by cowan)

Bradley Lucier writes (lightly edited):

A square primitive is useful in calculating with bignums because squaring a bignum is generally cheaper than multiplying two different bignums of the same size. For example, Gambit's runtime checks trivially whether the two arguments in (* a b) are eq? before calling the appropriate algorithm. Generally, it may be better to be able to express this primitive directly.

[He also points out that given square in the small language, we can have flsquare in the large language, though I don't think having the latter requires having the former.]

In addition, there are 20,340 Google hits for ss|scm?.

Change History (4)

comment:1 Changed 6 years ago by cowan

  • Description modified (diff)

comment:2 Changed 5 years ago by cowan

  • Status changed from new to decided

The WG voted to adopt this proposal.

comment:3 Changed 5 years ago by cowan

  • Owner changed from alexshinn to cowan
  • Status changed from decided to writing

comment:4 Changed 5 years ago by cowan

  • Resolution set to fixed
  • Status changed from writing to closed
Note: See TracTickets for help on using tickets.