SymPy-powered, Wolfram|Alpha-like answer engine totally in your browser, without backend computation

Overview

SymPy Beta

SymPy Beta is a fork of SymPy Gamma. The purpose of this project is to run a SymPy-powered, Wolfram|Alpha-like answer engine totally in your browser, without backend computation.

SymPy Beta = SymPy Gamma + (Pyodide - GAE - django) + (Vue + NaiveUI - jQuery)

SymPy Beta is NOT an official SymPy project.

Debug

npm i
npm run dev

Then open http://localhost:3000

Run

npm i
npm run build
cd dist
python -m http.server

Then open http://localhost:8000

License

AGPL 3.0 or later, with the exception of

  • kernel/gamma derived from SymPy Gamma, which remains 3-clause BSD License from SymPy Gamma
  • src/js/{factordiagram, plot}.js derived from SymPy Gamma, same above
Comments
  • Improvement suggestion

    Improvement suggestion

    Input

    Integral(1/(e**(x**2/2)*(sqrt(2*pi))), (x, -oo, oo))

    How can it be better?

    The expression (definite integral of standard normal distribution from negative infinity to position infinity) should equal 1(and it does in WolframAlpha), however the answer is another expression with \int^{\infty}_{-\infty}e^{-\frac{x^2}{2}}dx. Is it a bug or a feature of sympy?

    ambiguity 
    opened by dongivan 5
  • Improvement suggestion

    Improvement suggestion

    Input

    2*sin(x) + 3*cos(x)

    How can it be better?

    I tried using sympy_beta and it truly is great but if we could use say above equation like this 2sin(x) + 3cos(x) i.e. without * symbol for multiplication then it would be more efficient just like we give inputs in Wolfram|Alpha currently it would say invalid syntax.

    I don't know if this feature could be added but thought I should try mentioning it.

    parsing 
    opened by KuldeepBorkar 4
  • use python3 build by default

    use python3 build by default

    In my devbox(Ubuntu 20.04.5 LTS), The python command has been removed and replaced by python3, I think most of the latest Linux distributions and MacOS are designed this way.

    opened by cocolato 2
  • Please use a different name to not get mistaken for a beta version of SymPy

    Please use a different name to not get mistaken for a beta version of SymPy

    Unfortunately, web searches for "sympy beta" mostly give results of beta versions of SymPy itself.

    For a better name, I suggest to either move from gamma to delta, or even better to call it "Sympy Iota", in reference to the name "Pyodide".

    LTE 
    opened by jondo 1
  • Numpy not loading in Fennec on LineageOS 17.1

    Numpy not loading in Fennec on LineageOS 17.1

    Input

    plot(x=cos(t), y=sin(t))

    How can it be better?

    It should yield a plot instead of:

    plot([ p1 = (cos(t), sin(t))
    ])
    There was an error in Gamma. For reference the last five traceback entries are: Traceback (most recent call last):
      File "<exec>", line 15, in evcd
      File "/lib/python3.9/site-packages/gamma/logic.py", line 233, in eval_card
        result = card.eval(components, parameters)
      File "/lib/python3.9/site-packages/gamma/resultsets.py", line 95, in eval
        return self.card_info['eval_method'](components, parameters)
      File "/lib/python3.9/site-packages/gamma/resultsets.py", line 539, in eval_plot
        series = list(series.get_segments())
      File "/lib/python3.9/site-packages/sympy/plotting/plot.py", line 612, in get_segments
        points = type(self).get_data(self)
      File "/lib/python3.9/site-packages/sympy/plotting/plot.py", line 591, in get_data
        points = self.get_points()
      File "/lib/python3.9/site-packages/sympy/plotting/plot.py", line 923, in get_points
        sample(self.start, self.end, start, end, 0)
      File "/lib/python3.9/site-packages/sympy/plotting/plot.py", line 869, in sample
        random = 0.45 + np.random.rand() * 0.1
    AttributeError: 'NoneType' object has no attribute 'random'
    
    Fennec LineageOS 
    opened by jondo 3
Owner
Liumeo
Free and Open Source
Liumeo
Turning SymPy expressions into JAX functions

sympy2jax Turn SymPy expressions into parametrized, differentiable, vectorizable, JAX functions. All SymPy floats become trainable input parameters. S

Miles Cranmer 38 Dec 11, 2022
ReConsider is a re-ranking model that re-ranks the top-K (passage, answer-span) predictions of an Open-Domain QA Model like DPR (Karpukhin et al., 2020).

ReConsider ReConsider is a re-ranking model that re-ranks the top-K (passage, answer-span) predictions of an Open-Domain QA Model like DPR (Karpukhin

Facebook Research 47 Jul 26, 2022
Totally Versatile Miscellanea for Pytorch

Totally Versatile Miscellania for PyTorch Thomas Viehmann [email protected] This repository collects various things I have implmented for PyTorch Laye

Thomas Viehmann 428 Dec 28, 2022
Deep Text Search is an AI-powered multilingual text search and recommendation engine with state-of-the-art transformer-based multilingual text embedding (50+ languages).

Deep Text Search - AI Based Text Search & Recommendation System Deep Text Search is an AI-powered multilingual text search and recommendation engine w

null 19 Sep 29, 2022
On-device speech-to-intent engine powered by deep learning

Rhino Made in Vancouver, Canada by Picovoice Rhino is Picovoice's Speech-to-Intent engine. It directly infers intent from spoken commands within a giv

Picovoice 510 Dec 30, 2022
On-device speech-to-index engine powered by deep learning.

On-device speech-to-index engine powered by deep learning.

Picovoice 30 Nov 24, 2022
A pytorch implementation of Reading Wikipedia to Answer Open-Domain Questions.

DrQA A pytorch implementation of the ACL 2017 paper Reading Wikipedia to Answer Open-Domain Questions (DrQA). Reading comprehension is a task to produ

Runqi Yang 394 Nov 8, 2022
🥈78th place in Riiid Answer Correctness Prediction competition

Riiid Answer Correctness Prediction Introduction This repository is the code that placed 78th in Riiid Answer Correctness Prediction competition. Requ

Jungwoo Park 10 Jul 14, 2022
Transformer part of 12th place solution in Riiid! Answer Correctness Prediction

kaggle_riiid Transformer part of 12th place solution in Riiid! Answer Correctness Prediction. Please see here for more information. Execution You need

Sakami Kosuke 2 Apr 23, 2022
Predicts an answer in yes or no.

Oui-ou-non-prediction Predicts an answer in 'yes' or 'no'. It is based on the game 'effeuiller la marguerite' in which the person plucks flower petals

Ananya Gupta 1 Jan 15, 2022
Wordle-solver - Wordle answer generation program in python

?? Wordle Solver ?? Wordle answer generation program in python ✔️ Requirements U

Dahyun Kang 4 May 28, 2022
PyMatting: A Python Library for Alpha Matting

Given an input image and a hand-drawn trimap (top row), alpha matting estimates the alpha channel of a foreground object which can then be composed onto a different background (bottom row).

PyMatting 1.4k Dec 30, 2022
AlphaNet Improved Training of Supernet with Alpha-Divergence

AlphaNet: Improved Training of Supernet with Alpha-Divergence This repository contains our PyTorch training code, evaluation code and pretrained model

Facebook Research 87 Oct 10, 2022
Alpha-IoU: A Family of Power Intersection over Union Losses for Bounding Box Regression

Alpha-IoU: A Family of Power Intersection over Union Losses for Bounding Box Regression YOLOv5 with alpha-IoU losses implemented in PyTorch. Example r

Jacobi(Jiabo He) 147 Dec 5, 2022
Quick program made to generate alpha and delta tables for Hidden Markov Models

HMM_Calc Functions for generating Alpha and Delta tables from a Hidden Markov Model. Parameters: a: Matrix of transition probabilities. a[i][j] = a_{i

Adem Odza 1 Dec 4, 2021
Alpha-Zero - Telegram Group Manager Bot Written In Python Using Pyrogram

✨ Alpha Zero Bot ✨ Telegram Group Manager Bot + Userbot Written In Python Using

null 1 Feb 17, 2022
Milano is a tool for automating hyper-parameters search for your models on a backend of your choice.

Milano (This is a research project, not an official NVIDIA product.) Documentation https://nvidia.github.io/Milano Milano (Machine learning autotuner

NVIDIA Corporation 147 Dec 17, 2022