algebra.js | Build , display , and solve algebraic equations
kandi X-RAY | algebra.js Summary
kandi X-RAY | algebra.js Summary
Build, display, and solve algebraic equations.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Sort an array of terms
- Returns the gcd .
- Determine if an integer is an integer .
- Determines whether an entity contains the same term .
- Rounds a decimal number to the given decimal places .
- Creates a new UserException
- Sort variables alphabetically
- Returns the lcm of two points
- Computes the number between two points
- compute n t
algebra.js Key Features
algebra.js Examples and Code Snippets
...
var algebraJS = require('algebra.js')
var algebrite = require('algebrite')
var coffeequate = require('coffeequate')
// For algebra.js
algebraObj.toAlgebra(algebraJS) // Will either return an algebra.js expression or equation
// For algebrite
a
Community Discussions
Trending Discussions on algebra.js
QUESTION
I am using Nerdamer.js and it works fine with the code, but when I am solving some equations, the result i get is a function instead of just numbers
here is an example:
1x³+2x²+3x-4=0
if you solve this equation you will get these values:
0.7760454350285384
1.7965885235495673
-1.7965885235495673
or sometimes just the first value
but when i try to solve it with Nerdamer, I will an array of 3 objects with some informations, and the answers in each object are:
(-1/3)*(-146+6*sqrt(606))^(1/3)*2^(-1/3)+(5/3)*(-146+6*sqrt(606))^(-1/3)*2^(1/3)-2/3
(1/6)*((-146+6*sqrt(606))^(1/3)*2^(-1/3))^(-1)*(-5+5*i*sqrt(3))+(1/6)*(-146+6*sqrt(606))^(1/3)*(1+i*sqrt(3))*2^(-1/3)-2/3
(1/6)*((-146+6*sqrt(606))^(1/3)*2^(-1/3))^(-1)*(-5-5*i*sqrt(3))+(1/6)*(-146+6*sqrt(606))^(1/3)*(-i*sqrt(3)+1)*2^(-1/3)-2/3
and here is my code:
...ANSWER
Answered 2021-Jan-01 at 21:30You need to call .evaluate()
for each solution.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install algebra.js
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page