File: calcrc

package info (click to toggle)
guile-gtk-1.2 0.31-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,544 kB
  • ctags: 2,413
  • sloc: sh: 11,073; ansic: 3,380; lisp: 1,058; makefile: 106
file content (23 lines) | stat: -rw-r--r-- 538 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;;
;; Time-stamp: <1998-03-15 21:20:17 szi>
;;
;; Example resource file for calc.scm
;;
;; Copy this file into your HOME directory and name it ".calcrc". It
;; will be read by Calc.scm during startup.
;;

(define complex-panel
  (calc-panel
   (("i"    (lambda () 0+1i) 0)
    ("conj" (lambda (a) (+ (real-part a) (* (imag-part a) 0-1i))) 1)
    ("re"   real-part 1)
    ("im"   imag-part 1)
    ("arg"  angle 1)
    ("abs"  magnitude 1))))
  
(set! calc-panels (cons complex-panel calc-panels))

; Local Variables:
; mode: scheme
; End: