You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
901 B

25 years ago
  1. (progn
  2. (format t "~%pi")
  3. (time (setf (long-float-digits) 3322))
  4. (time pi)
  5. )
  6. (progn
  7. (format t "~%gamma not yet implemented in CLISP")
  8. )
  9. (progn
  10. (format t "~%e")
  11. (time (exp 1L0))
  12. )
  13. (progn
  14. (format t "~%sqrt(3)")
  15. (time (sqrt 3L0))
  16. )
  17. (progn
  18. (format t "~%exp(log(2))")
  19. (time (exp (log 2L0)))
  20. )
  21. (progn
  22. (format t "~%log(exp(2))")
  23. (time (log (exp 2L0)))
  24. )
  25. (progn
  26. (format t "~%sin(pi/3)")
  27. (time (sin (/ pi 3)))
  28. )
  29. (progn
  30. (format t "~%cos(pi/3)")
  31. (time (cos (/ pi 3)))
  32. )
  33. (progn
  34. (format t "~%arcsin(sqrt(3)/2)")
  35. (time (asin (/ (sqrt 3L0) 2)))
  36. )
  37. (progn
  38. (format t "~%arccos(sqrt(3)/2)")
  39. (time (acos (/ (sqrt 3L0) 2)))
  40. )
  41. (progn
  42. (format t "~%sinh(log(2))")
  43. (time (sinh (log 2L0)))
  44. )
  45. (progn
  46. (format t "~%cosh(log(2))")
  47. (time (cosh (log 2L0)))
  48. )
  49. (progn
  50. (format t "~%arsinh(pi)")
  51. (time (asinh pi))
  52. )
  53. (progn
  54. (format t "~%arcosh(pi)")
  55. (time (acosh pi))
  56. )