This commit is contained in:
Thomas Baruchel 2022-10-04 20:28:58 +02:00
parent 32376186d7
commit 56d0c3a8e1
1 changed files with 11 additions and 0 deletions

View File

@ -52,6 +52,17 @@
; (%i3) keepfloat:true$ ; (%i3) keepfloat:true$
; (%i4) subst(x=0.5, thiele(b,a))*3; ; (%i4) subst(x=0.5, thiele(b,a))*3;
; (%o4) 3.14159265357928 ; (%o4) 3.14159265357928
;
; The function may be used with exact values, but it is highly sensitive
; to input values, and equally spaced abscissæ often yield some division
; by zero error.
;
; (%i5) thiele([1,2,5,6], [10,12,11,13]);
; 2
; 9 x + 29 x - 238
; (%o5) -----------------
; 8 x - 28
(defun $thiele (u v) (defun $thiele (u v)
(loop for rh on (loop for rh on