Questions tagged [math.js]

Math.js is an extensive math library for JavaScript and Node.js.

Math.js is an extensive math library for JavaScript and Node.js.

Features

  • Supports numbers, big numbers, complex numbers, units, strings, arrays, and matrices.
  • Is compatible with JavaScript’s built-in Math library.
  • Contains a flexible expression parser.
  • Supports chained operations.
  • Comes with a large set of built-in functions and constants.
  • Has no dependencies. Runs on any JavaScript engine.
  • Is easily extensible.
  • Open source.
55 questions
0
votes
2 answers

math.sum how to pass a collection of values as argument?

i started to use math.js just for convenience and i was wondering if i could use math.sum method and pass a collection of input values as argument and return the sum of all input values,for example,something like this : code to visualize my concept…
Vaggelis
  • 912
  • 5
  • 17
0
votes
1 answer

Improve trig calculation precision in JS

I have this code for a JS graphic that is supposed to draw three circles and no matter what their radiuses, their edges should always touch. import React, { useState, useEffect } from "react"; import "./styles.css"; export default function App() { …
Davtho1983
  • 3,827
  • 8
  • 54
  • 105
0
votes
1 answer

Is it possible to call js library in .net core Web api

We are using the Math.js library for evaluating the string expressions in Angular. Now we need to implement the same in C# for the same expression. Is there any equivalent library to Math.Js in C# or can we call Math.js library in C#? below is an…
Ramakrishna Reddy
  • 347
  • 1
  • 2
  • 18
0
votes
0 answers

Generate mathematical function out of given values/points

I have three points x0=(x0|y0), x1=(x1|y1) and x2=(x2|y2). Now I want to create a mathematical function out of those points. The target is a function like this: f(x)=4x^2 + 2x + 6 What is the best way to do that in NodeJS?
OttherCreek
  • 615
  • 1
  • 6
  • 18
0
votes
0 answers

Properly including math.js library in a .js file

I want to use the math.js library in my javascript file - say it's called webpage.js. What I did so far is having a script tag in the main html file that calls math.js, and then another that calls webpage.js. The script tags are as follows: I keep getting a MIME error in Chrome. I also can't work out how…
leto
  • 489
  • 4
  • 18