Title: Accept coefficients as formulas without eval · Issue #164 · FEAScript/FEAScript-core · GitHub
Open Graph Title: Accept coefficients as formulas without eval · Issue #164 · FEAScript/FEAScript-core
X Title: Accept coefficients as formulas without eval · Issue #164 · FEAScript/FEAScript-core
Description: Coefficients given as text, e.g. "if(x < 2, 10, 1)" or "100 * exp(-y)", so a model in JSON can still have varying coefficients. Parsed and evaluated without eval or new Function (a small expression parser, or math.js, which the core alre...
Open Graph Description: Coefficients given as text, e.g. "if(x < 2, 10, 1)" or "100 * exp(-y)", so a model in JSON can still have varying coefficients. Parsed and evaluated without eval or new Function (a small expression...
X Description: Coefficients given as text, e.g. "if(x < 2, 10, 1)" or "100 * exp(-y)", so a model in JSON can still have varying coefficients. Parsed and evaluated without eval or new Funct...
Opengraph URL: https://github.com/FEAScript/FEAScript-core/issues/164
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Accept coefficients as formulas without eval","articleBody":"Coefficients given as text, e.g. `\"if(x \u003c 2, 10, 1)\"` or `\"100 * exp(-y)\"`, so a model in JSON can still have varying coefficients.\n\n- Parsed and evaluated without `eval` or `new Function` (a small expression parser, or math.js, which the core already depends on, in a restricted scope).\n- Variables `x`, `y` (and the solution where a model allows it), common functions and `if`.\n- Parse errors throw a `FEAScriptError` that points to the position in the text.\n- JavaScript functions keep working.\n","author":{"url":"https://github.com/nikoscham","@type":"Person","name":"nikoscham"},"datePublished":"2026-11-15T20:44:19Z","url":"https://github.com/FEAScript/FEAScript-core/issues/164"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e0932917-32a5-48cf-046e-7128afafed85 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99D0:3F7C2E:2375D4:31E396:6B0058C1 |
| html-safe-nonce | 4cb3edfbd77acfb00843e9ba3c0854e6805eb46181a31130243b4fc56f86192b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUQwOjNGN0MyRToyMzc1RDQ6MzFFMzk2OjZCMDA1OEMxIiwidmlzaXRvcl9pZCI6IjI0NjI5OTg3NjM0NzI0NDM1ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a56de0a63476eab33dcb7400ce4998b3bdd81323b754a40be0ad74e5d37abda9 |
| hovercard-subject-tag | issue:6409275183 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/FEAScript/FEAScript-core/164/issue_layout |
| twitter:image | https://opengraph.githubassets.com/89ceca468087f443396ea88bde20b5f0f82e0915c481b29330085496f95d23f6/FEAScript/FEAScript-core/issues/164 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/89ceca468087f443396ea88bde20b5f0f82e0915c481b29330085496f95d23f6/FEAScript/FEAScript-core/issues/164 |
| og:image:alt | Coefficients given as text, e.g. "if(x < 2, 10, 1)" or "100 * exp(-y)", so a model in JSON can still have varying coefficients. Parsed and evaluated without eval or new Function (a small expression... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nikoscham |
| hostname | github.com |
| expected-hostname | github.com |
| None | 29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73 |
| turbo-cache-control | no-preview |
| go-import | github.com/FEAScript/FEAScript-core git https://github.com/FEAScript/FEAScript-core.git |
| octolytics-dimension-user_id | 153191005 |
| octolytics-dimension-user_login | FEAScript |
| octolytics-dimension-repository_id | 665162813 |
| octolytics-dimension-repository_nwo | FEAScript/FEAScript-core |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 665162813 |
| octolytics-dimension-repository_network_root_nwo | FEAScript/FEAScript-core |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | eacd927ba6112e3b01ba99c762bd699a4a4f5df7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width