Coder Social home page Coder Social logo

athena's Introduction

Athena (WIP)

Intuitive math syntax for a user-friendly CAS

web-interface

backend

// row vector
a: R^(1x3) = (1 2 3)

// column vector
a: R^(3x1) = (1 2 3)^T

a: R^3 = (1 2 3)^T
a := (1; 2; 3)
a[i: 1..3] := i
a[i: 1..3]: R^3 = i

M := ( 1 2 3; 2 4 6; 3 6 9)
M := (
    1 2 3
    2 4 6
    3 6 9
)

M[i: 1..3, j: 1..3] := i * j

_M[i: 1..3, j: 1..3] := 2 * M[i, j]

monomial :: n: N -> sum k: 0..n  { x^k }

f :: x^2 + 2x + 3
f :: x -> x^2 + 2x + 3

f :: sin(x) + y
f :: (x, y) -> sin(x) + y
f :: (x, y) -> sin(x) + y
f :: (x: R, y: R) -> sin(x) + y
f :: (x: R, y: R) -> R { sin(x) + y }

F :: int { f } d(x)
F :: int { f } d_x
F :: int a..b { f } d(x)

F :: int { x -> x^2 + 2x + 3 } d_x
F :: int { x^2 + 2x + 3 } d_x

f :: d_F / d_x
f :: d(F) / d(x)
f :: F'


J: R^(2x2) = jacobi(F)

d_x := J[0, ..]

// WIP

Even :: { x: R | x % 2 == 0 }

Even subset R

SquarePoly :: { (x) :: a*x^2 + b*x + c | a: R, b: R, c: R }

n: Even := 4
_n: R := n // possible, because Even is a subset

q(x: R) : SquarePoly : 3x^2 + 3x + 4

p(x: R) :: 3x^2 + 3x + 8

check(p in SquarePoly)
check(q in SquarePoly)


s1 := { x | p(x) == 0, x: R }

s2 := {x | p'(x) == 0, x: R }
s3 := {x | d_p(x) / d_x == 0, x: R }

check(s2 == s3)

inspired by GeoGebra, Desmos, SymPy, WolframAlpha

athena's People

Contributors

dlamei avatar

Stargazers

Luis Wirth avatar

Watchers

 avatar

athena's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.