https://github.com/rlch/desmos2wolfram-piecewise
Converts piecewise desmos functions to a format acceptable by WolframAlpha
https://github.com/rlch/desmos2wolfram-piecewise
Last synced: 3 months ago
JSON representation
Converts piecewise desmos functions to a format acceptable by WolframAlpha
- Host: GitHub
- URL: https://github.com/rlch/desmos2wolfram-piecewise
- Owner: rlch
- Created: 2020-11-11T13:22:35.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-12T02:05:45.000Z (over 4 years ago)
- Last Synced: 2025-01-16T22:47:06.407Z (5 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Desmos2Wolfram: Piecewise
Converts piecewise desmos functions to a format acceptable by WolframAlpha# Usage
```python
python desmos2wolfram.py "function 1" "function 2" ...
```# Example
```python
python .\desmos2wolfram.py "\left\{0\le w<\frac{1}{2}:0,\frac{1}{2}\le w<1:0.999,w=1:1\right\}"
"\left\{0\le w\le\frac{1}{2}:\frac{1}{2}w,\frac{1}{2} Piecewise[{{0, 0\le w<\frac{1}{2}},{0.999, \frac{1}{2}\le w<1},{1, w=1}}]
> Piecewise[{{\frac{1}{2}w, 0\le w\le\frac{1}{2}},{\frac{1}{4}, \frac{1}{2} Piecewise[{{w^{\frac{1}{5}}, 0\le w\le1}}]
```