Comments (18)
Very much agreed! It should go in the README.
I'll try to get this done this weekend, or you could add it if you're interested :)
from mathsteps.
Okay! Let me help 😄
from mathsteps.
goodnight! 🌃
oo I was going to make a gitter for mathsteps! I'm so glad you suggested it too.
I'm thinking something very similar to the existing expression example in the README, just add one for equations
e.g. building on your example above
const mathsteps = require('.');
const steps = mathsteps.solveEquation('2x + 3x = 35');
console.log(steps);
steps.forEach(step => {
// e.g. before change: 2x + 3x = 35
console.log("before change: " + step.oldEquation.print());
// e.g. change: SIMPLIFY_LEFT_SIDE
console.log("change: " + step.changeType);
// e.g. after change: 5x = 35
console.log("after change: " + step.newEquation.print());
// e.g. # of substeps: 2
console.log("# of substeps: " + step.substeps.length);
});
what do you think?
from mathsteps.
eh, let's just close this issue, and have it part of the wiki issue instead.
yeah! I'm excited about the wiki 👍
from mathsteps.
(let me know if you want to do it and I'll leave it to you)
from mathsteps.
I am new to the repository. I need some guidance on this. And it's API documentation, I think people who created the API should do it, or help me do it. But the latter is kind of double work in this case, no ?
from mathsteps.
I don't mind double work if you're interested in working on it (always happy to support someone contributing to mathsteps
!) but am also quite fine to do it on my own - just wanted to give you the option :)
from mathsteps.
We can discuss here or in gitter.im and I am in India, UTC+05:30 time zone.
from mathsteps.
It's night now, for me. We can discuss tomorrow!
from mathsteps.
Pretty neat code! @evykassirer 😄
from mathsteps.
Do add this one as an example for equations ! 😄 Just remove the console.log(steps)
line since it puts up lots of clumsy values. The forEach
function part shows em in a neat manner.
from mathsteps.
oh yes! I meant to take that line out oooops.
Do you want to make the pull request that adds this example?
from mathsteps.
Sure! 👍
from mathsteps.
I created a separate issue for the equation solving example. #102 And created a PR #103 for the same
from mathsteps.
great! would you like to see more thorough API docs too? or do you think the example you added gives enough information (which would mean we can close this issue)
from mathsteps.
I think a more thorough API documentation is needed since there are some more functionalities, like substeps
that has some information same as steps
. But it's not mentioned and we can't just assume that steps
and substeps
are of same type. So, it's good if we provide this and more info in the API docs. We can keep it small and simple!
from mathsteps.
sweet, I think it should go in the wiki #66
from mathsteps.
Cool, so shall we close this issue ? or just keep it open till we add docs Wiki ?
And woah, Wiki list has lots of stuff, it can help contributors to get familiar with the code base 👍 and contribute with more ease!
from mathsteps.
Related Issues (20)
- x * (x - 1) = 1 ===>> throws 'Math error: No term with symbol: x , returning no steps' HOT 1
- How to run mathsteps on smartphone? HOT 1
- Severe security vulnerability HOT 5
- Missing parentheses when multiplying with a negative number HOT 5
- more things to add to linter
- Current Limitations HOT 1
- Mathsteps cannot handle quadratic equations HOT 4
- Development Status HOT 1
- handling latex input
- Script to browserify mathsteps
- compute a reverse expression HOT 1
- Fails when left node is only a parenthesis (eg "(x+1)=4", "((x)/(4))=4")
- Canceling out first variable throws error
- How to render these steps using Mathjax or something else? HOT 1
- Project Status and inactive email HOT 2
- bug : x-2/3=0
- Another bug : 2/x=3/4 HOT 2
- Adapting to iOS Swift
- Adapt README.md to link to the most active fork
- choose variable to solve for
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mathsteps.