Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

144
Views
Javascript resuelve ecuaciones lineales con nerdamer.solveEquations

Estoy tratando de hacer un programa javascript que resuelva ecuaciones lineales usando nerdamer, estoy siguiendo la documentación de nerdamer aquí mismo pero recibí un error cuando traté de usar la función solveEquations aquí está el código:

 const nerdamer = require("nerdamer"); const eq = nerdamer.solveEquations(["3+x=9"]); console.log(eq.toString());

aquí está el error que tengo:

 const eq = nerdamer.solveEquations(["3+x=9"]); ^ TypeError: nerdamer.solveEquations is not a function
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Para usar solveEquations , también debe cargar el módulo Solve . Pero también tenga en cuenta que const no se puede usar ya que nerdamer se modifica cuando se cargan otros módulos. Para que tu ejemplo funcione, haz:

 var nerdamer = require("nerdamer") require('nerdamer/Solve') const eq = nerdamer.solveEquations(["3+x=9"]) console.log(eq.toString())

Ejemplo: https://runkit.com/61a67e5dd78be10008bf0fcc/61a67e5d000388000831e495

O, si va a usar todos los módulos, puede usar una sola importación:

 const nerdamer = require("nerdamer/all.min")

Aquí está la guía de inicio rápido: https://nerdamer.com/quickstart.html

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!