Commit 32957366 authored by josd's avatar josd

refresh

parent 72862ca9
......@@ -2,6 +2,6 @@ from sympy import *
x = Symbol('x')
print('PREFIX : <http://josd.github.io/eye/modalities#>')
print('PREFIX : <http://josd.github.io/eye/linking#>')
print('')
print('"integrate(exp(-x**2), (x, -oo, oo))" :integral "%s".' % (integrate(exp(-x**2), (x, -oo, oo))))
PREFIX : <http://josd.github.io/eye/modalities#>
PREFIX : <http://josd.github.io/eye/linking#>
"integrate(exp(-x**2), (x, -oo, oo))" :integral "sqrt(pi)".
......@@ -14,7 +14,7 @@ def easter(year):
return date(year, month, day)
print('PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>')
print('PREFIX : <http://josd.github.io/eye/modalities#>')
print('PREFIX : <http://josd.github.io/eye/linking#>')
print('')
print('2019 :easter "%s"^^xsd:date.' % (easter(2019)))
print('2020 :easter "%s"^^xsd:date.' % (easter(2020)))
......
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX : <http://josd.github.io/eye/modalities#>
PREFIX : <http://josd.github.io/eye/linking#>
2019 :easter "2019-04-21"^^xsd:date.
2020 :easter "2020-04-12"^^xsd:date.
......
......@@ -4,7 +4,7 @@ def fib(n, c={0:1, 1:1}):
c[n] = fib(x-1) * fib(n-x-1) + fib(x) * fib(n-x)
return c[n]
print('PREFIX : <http://josd.github.io/eye/modalities#>')
print('PREFIX : <http://josd.github.io/eye/linking#>')
print('')
print('0 :fib "%d".' % (fib(0)))
print('91 :fib "%d".' % (fib(91)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment