Giter Site home page Giter Site logo

eagleoflqj / sympy_beta Goto Github PK

View Code? Open in Web Editor NEW
51.0 3.0 11.0 384 KB

SymPy-powered, Wolfram|Alpha-like answer engine totally in your browser, without backend computation. Discord: https://discord.gg/gq4c9ufZkX

Home Page: https://sympy-beta.vercel.app

License: GNU Affero General Public License v3.0

JavaScript 7.27% HTML 0.28% Python 64.31% Vue 22.04% TypeScript 6.10%
sympy pyodide vue naive-ui pwa saas

sympy_beta's Introduction

SymPy Beta

Try me at https://sympy-beta.vercel.app!

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.

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

But as development continues, it goes far beyond SymPy Gamma, although still needs to learn much from the respected model Wolfram|Alpha.

That's why I name it SymPy Beta.

SymPy Beta is NOT an official SymPy project.

Document

See doc.

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
  • public/shell.js and src/views/Terminal.vue derived from Pyodide, which remain MPL-2.0
  • kernel/extension/elementary/num2words.py derived from num2words, which switched from LGPL-2.1 to GPL-3.0-or-later in order to be compatible with AGPL

sympy_beta's People

Contributors

cocolato avatar eagleoflqj avatar ivanistheone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sympy_beta's Issues

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?

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'

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.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

Renovate tried to run on this repository, but found these problems.

  • WARN: Found renovate config warnings

Other Branches

These updates are pending. To force PRs open, click the checkbox below.

  • Update all minor dependencies (major) (@typescript-eslint/eslint-plugin, @typescript-eslint/parser, @vitejs/plugin-vue, actions/checkout, actions/setup-node, actions/setup-python, eslint, renovatebot/github-action, rollup, rollup-plugin-esbuild, vite, vue-tsc)

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/kernel.yml
  • actions/checkout v2
  • actions/setup-python v2
.github/workflows/node.yml
  • actions/checkout v2
  • actions/setup-node v2
  • actions/setup-python v2
.github/workflows/renovate.yaml
  • actions/checkout v3
  • renovatebot/github-action v39.0.1
npm
package.json
  • @libreservice/my-worker ^0.4.0
  • @rollup/plugin-json ^6.0.0
  • @rollup/plugin-node-resolve ^15.0.2
  • @rollup/plugin-replace ^5.0.2
  • @typescript-eslint/eslint-plugin ^5.59.7
  • @typescript-eslint/parser ^5.59.7
  • @vicons/fa ^0.12.0
  • @vicons/material ^0.12.0
  • @vicons/tabler ^0.12.0
  • @vitejs/plugin-vue ^4.2.3
  • esbuild ^0.17.19
  • eslint ^8.41.0
  • eslint-config-standard ^17.0.0
  • eslint-plugin-import ^2.27.5
  • eslint-plugin-node ^11.1.0
  • eslint-plugin-promise ^6.1.1
  • eslint-plugin-vue ^9.14.0
  • jquery ^3.7.0
  • jquery.terminal ^2.36.0
  • katex ^0.16.7
  • markdown-escape ^2.0.0
  • mathlive ^0.94.5
  • naive-ui ^2.34.4
  • rimraf ^5.0.1
  • rollup ^3.23.0
  • rollup-plugin-esbuild ^5.0.0
  • typescript ^5.0.4
  • vite ^4.3.8
  • vite-plugin-pwa ^0.15.1
  • vite-plugin-rewrite-all ^1.0.1
  • vite-plugin-run ^0.4.1
  • vooks ^0.2.12
  • vue ^3.3.4
  • vue-router ^4.2.1
  • vue-tsc ^1.6.5
pip_requirements
kernel/requirements.txt
  • antlr4-python3-runtime ==4.11
  • docutils ==0.19
  • matplotlib ==3.5.2
  • nltk ==3.8.1
  • numpy ==1.24.2
  • scipy ==1.9.3
  • sympy ==1.12

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.