From 139e3cc16174d630b18778259a8de005bb0e08ac Mon Sep 17 00:00:00 2001 From: miner Date: Thu, 4 Jan 2024 18:12:06 -0500 Subject: [PATCH] modified: README.md renamed: dist/Ceres-v2.0.14.mjs -> dist/ceres.js modified: docs/arrow_functions.html modified: docs/json_syntax.html modified: docs/powell.html modified: docs/quadratic.html modified: docs/rosenbrock.html modified: docs/user1.html --- README.md | 16 +++++----- dist/{Ceres-v2.0.14.mjs => ceres.js} | 47 ++++++++++++++++++++++------ docs/arrow_functions.html | 2 +- docs/json_syntax.html | 4 +-- docs/powell.html | 2 +- docs/quadratic.html | 2 +- docs/rosenbrock.html | 2 +- docs/user1.html | 2 +- 8 files changed, 51 insertions(+), 26 deletions(-) rename dist/{Ceres-v2.0.14.mjs => ceres.js} (99%) diff --git a/README.md b/README.md index bbcd0dc..39d3dd5 100644 --- a/README.md +++ b/README.md @@ -11,10 +11,11 @@ You can install Ceres.js by including the Ceres.js file in your HTML or js code. ```HTML ``` @@ -27,25 +28,22 @@ Recently in 2024 we have introduced a new syntax for the Ceres js engine. let jsonSystem = { "variables": { "a": { - "lowerbound": 1.6, + "lowerbound": -3, "guess": 1, }, "b": { - "upperbound": 1.7, + "upperbound": 5, "guess": 2, }, }, "functions": [ "a + 10 * b - 20", - "Math.sqrt(5) * a - b * b" - ], - "callbacks": [ - "console.log(x)" + "sqrt(5) * a - b * b" ] }; async function ceresLoading() { - const {Ceres} = await import('https://cdn.jsdelivr.net/gh/Pterodactylus/Ceres.js@master/dist/Ceres-v2.0.2.mjs'); + const {Ceres} = await import('https://cdn.jsdelivr.net/gh/Pterodactylus/Ceres.js@master/dist/ceres.js'); var solver = new Ceres(); solver.run(jsonSystem); } @@ -62,7 +60,7 @@ Ceres.js takes a vector of residual equations that are all equal to zero when th ```html