PasteRack.org
Paste # 57013
2018-09-30 09:59:40

Forked from paste # 87206.

Fork as a new paste.

Paste viewed 2427 times.


Embed:

  1. #lang scheme
  2.  
  3. (define (function x) (if (<= x 3) 2 (- (expt x 2) (* 3 x))))
  4.  
  5.   (function -2)
  6.   (function 1)
  7.   (function 3)
  8.   (function 5)
  9.   (function 10)

=>

2

2

2

10

70