aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBraxton Hall2022-10-25 22:11:43 +0000
committerGitHub2022-10-25 22:11:43 +0000
commite187bb84b9c3231f7f63a70a3136b7355ba0567a (patch)
treed96eb1db46230a47bc5d4fc726a616c25622a06b
parentd57abc9cefad29bd3977fc513ef6948f021dd558 (diff)
parent4687273b2f22bba837dac661a38bf50185e7d8d0 (diff)
Merge pull request #45 from Tarcisio-Teixeira/main
Create differential.py
-rw-r--r--entries/Tarcisio-Teixeira/differential.py10
-rw-r--r--people.json6
2 files changed, 15 insertions, 1 deletions
diff --git a/entries/Tarcisio-Teixeira/differential.py b/entries/Tarcisio-Teixeira/differential.py
new file mode 100644
index 0000000..8abbdae
--- /dev/null
+++ b/entries/Tarcisio-Teixeira/differential.py
@@ -0,0 +1,10 @@
+from sympy import *
+
+def fib(n):
+ x = symbols('x')
+ f = diff(1/(1-x-x**2),x,0)
+ fact = 1
+ for i in range(1,n):
+ f = diff(f,x)
+ fact *= i
+ return f.subs(x,0)/fact
diff --git a/people.json b/people.json
index f7edd70..a9be376 100644
--- a/people.json
+++ b/people.json
@@ -280,6 +280,10 @@
{
"name": "logn?",
"link": "./entries/Tarcisio-Teixeira/fib.py"
+ },
+ {
+ "name": "differential",
+ "link": "./entries/Tarcisio-Teixeira/differential.py"
}
]
},
@@ -397,4 +401,4 @@
}
]
}
-] \ No newline at end of file
+]