From 4d979b9ca2b5e5733f95edc65fd0adf7c51e2bb3 Mon Sep 17 00:00:00 2001 From: Tarcisio-Teixeira Date: Tue, 25 Oct 2022 15:00:37 -0700 Subject: Create differential.py --- entries/Tarcisio-Teixeira/differential.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 entries/Tarcisio-Teixeira/differential.py 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 -- cgit v1.2.3-70-g09d2 From 79f35588f9026e09a7adcef7388f0c613b6ac240 Mon Sep 17 00:00:00 2001 From: Tarcisio-Teixeira Date: Tue, 25 Oct 2022 15:08:03 -0700 Subject: Update people.json --- people.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/people.json b/people.json index f7edd70..e9faed7 100644 --- a/people.json +++ b/people.json @@ -280,7 +280,11 @@ { "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 +] -- cgit v1.2.3-70-g09d2 From 4687273b2f22bba837dac661a38bf50185e7d8d0 Mon Sep 17 00:00:00 2001 From: Tarcisio-Teixeira Date: Tue, 25 Oct 2022 15:10:50 -0700 Subject: Update people.json --- people.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/people.json b/people.json index e9faed7..a9be376 100644 --- a/people.json +++ b/people.json @@ -284,7 +284,7 @@ { "name": "differential", "link": "./entries/Tarcisio-Teixeira/differential.py" - }, + } ] }, { -- cgit v1.2.3-70-g09d2