58 Commits

Author SHA1 Message Date
Sukka
d5740c9ac9
chore: remove polyfill.io inside example (#3167)
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-03-08 16:22:16 +01:00
Jos de Jong
83ae82aa21 fix: give the inputsDiv a white background (see #3151) 2024-03-06 10:19:27 +01:00
David Contreras
36611384da
feat: Interactive lorenz example (#3151)
* Interactive lorenz

* Separate Interactive Lorenz

* Cleanup

* Bigger graphs

* Full screen examples

---------

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-03-06 10:16:49 +01:00
David Contreras
856b9489fa
Example for Lorenz attractor (#3018)
* broadcasting

* Simplified broadcasting

* Updated for broadcasting

* Changed to camel case

* Camel case and auto formating

* Added comments

* Skip if matrices have the same size

* Fixed issue with undefined variable

missing dot  in `A._size`

* Implemented broadcasting in all functions

* Added helper functions

* Added function to check for broadcasting rules

* Tests for broadcasted arithmetic

* Fixed issue with matrix the size of a vector

* Documented and updated broadcasting

* Included broadcast.test

* Included math to syntax when missing

* Lorenz attractor

---------

Co-authored-by: David Contreras <david.contreras@guentner.com>
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2023-08-30 11:46:04 +02:00
Jos de Jong
3799fa658e Fix #2873: the rocket_trajectory_optimization.html example being partly broken 2023-01-13 15:09:38 +01:00
Josef Wittmann
eabaaf0048
Update rocket example (#2072)
* Update rocket example

- use values for moon ascent (was earth)
- refactor to use easier syntax
- extract functions for readability
- add comments explaining equations
- label chart axes

* Simulate Falcon 9 launch (with atmosphere)

* Add more charts to rocket example

* Track time in rocket example

* Update comments and extract chart options
2021-01-06 09:22:36 +01:00
Peter Krautzberger
02137e01c9
docs: update pretty print with MathJax (#2023)
Upgrades to MathJax v3 and adjusts to new APIs.
2020-11-09 13:23:18 +01:00
Jos de Jong
6f00715754
Specify import require paths (continuation of #1941) (#1962)
* Add `.js` extension to source file imports

* Specify package `exports` in `package.json`

Specify package type as `commonjs` (It's good to be specific)

* Move all compiled scripts into `lib` directory

Remove ./number.js (You can use the compiled ones in `./lib/*`)

Tell node that the `esm` directory is type `module` and enable tree shaking.

Remove unused files from packages `files` property

* Allow importing of package.json

* Make library ESM first

* - Fix merge conflicts
- Refactor `bundleAny` into `defaultInstance.js` and `browserBundle.cjs`
- Refactor unit tests to be able to run with plain nodejs (no transpiling)
- Fix browser examples

* Fix browser and browserstack tests

* Fix running unit tests on Node 10 (which has no support for modules)

* Fix node.js examples (those are still commonjs)

* Remove the need for `browserBundle.cjs`

* Generate minified bundle only

* [Security] Bump node-fetch from 2.6.0 to 2.6.1 (#1963)

Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1. **This update includes a security fix.**
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Cleanup console.log

* Add integration tests to test the entry points (commonjs/esm, full/number only)

* Create backward compatibility error messages in the files moved/removed since v8

* Describe breaking changes in HISTORY.md

* Bump karma from 5.2.1 to 5.2.2 (#1965)

Bumps [karma](https://github.com/karma-runner/karma) from 5.2.1 to 5.2.2.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v5.2.1...v5.2.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

Co-authored-by: Lee Langley-Rees <lee@greenimp.co.uk>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-20 18:01:29 +02:00
josdejong
654e193a78 Fix fixer.io example, the free plan doesn't support SSL 2020-05-06 10:14:18 +02:00
josdejong
28b7a02f01 Fix #1834: value Infinity cannot be serialized and deserialized 2020-05-03 15:41:03 +02:00
jos
51f99dbcd3 Remove old_browsers example (these browsers aren't supported anymore) 2019-06-08 13:59:39 +02:00
jos
a4d2c70c37 Define HTML charset and lang in all browser examples 2019-06-08 13:57:17 +02:00
jos
6081360d6a Merged develop into modular_architecture 2019-04-13 16:51:51 +02:00
jos
70cbc3ec30 Replace http urls with https where supported 2019-02-27 13:08:42 +01:00
jos
078f1dd69f Renamed methods .eval to .evaluate, updated all docs and examples accordingly 2019-01-16 10:11:32 +01:00
jos
41febe2bc1 Fixed #1136: rocket trajectory example broken 2018-07-04 10:10:28 +02:00
jos
dff0a57219 Some fixes in examples 2018-06-16 14:32:47 +02:00
jos
b0ec2d4739 Fixed undefined variables/globals 2018-06-13 18:09:19 +02:00
jos
0583771e4e Cleanup unused variables and imports 2018-06-13 17:25:51 +02:00
jos
b6b36bfd9b Use strict equality checks everywhere (=== and !==) 2018-06-13 15:02:21 +02:00
jos
b3b96749bf Refactored var into const/let, and removed a lot of semicolons 2018-06-13 12:21:14 +02:00
jos
024b2a9e26 Fix most lint errors using npx standard --fix 2018-06-10 20:28:27 +02:00
jos
52e4a53e75 Change the plot example to actually use mathjs :D (see #1074) 2018-04-02 11:38:44 +02:00
Harry Sarson
26fdd7099e
Uses unpkg.com instead of wzrd for cdn.
https://wzrd.in is down and so example breaks.

This commit uses unpkg instead which should be more reliable.
2018-03-26 22:34:13 +01:00
jos
e7766e4468 Replaced examples resulting in round-off errors to prevent confusion (see #910) 2017-08-02 20:02:51 +02:00
jos
c68bb116a2 Fixed indentation in example 2017-06-30 14:42:08 +02:00
Nekomajin42
eb8ce32345 create HTML output example page 2017-06-01 16:03:48 +02:00
jos
088c612cd6 Released v3.12.2 2017-04-30 14:02:25 +02:00
jos
f39a4073db https url instead of http 2017-02-03 20:17:22 +01:00
jos
ff96ab812d Created a currency conversion example (see #787) 2017-02-03 20:11:38 +01:00
jos
20f3af05b3 Fixed markdown urls, updated an example 2017-01-23 21:56:14 +01:00
Max Bruckner
c57964003d pretty printing example: expose implicit multiplication options 2016-03-19 19:37:56 +01:00
jos
ace46111a4 Format result 2016-01-05 08:55:57 +01:00
jos
926caae19f Updated plot example 2015-11-28 21:58:43 +01:00
jos
45396868d2 Updated example angle_configuration.html 2015-10-28 21:33:00 +01:00
jos
e34b2b5316 Updated example angle_configuration.html 2015-10-28 21:25:14 +01:00
jos
fc3555119e Released v2.2.0 2015-08-30 15:38:31 +02:00
jos
c810981238 Method Node.compile() no longer needs math to be passed as argument. 2015-05-27 13:30:35 +02:00
jos
6c7bf4acf0 Removed boolean, string, and null from the list with argument types, only leaving the directly supported types (which types can be converted to supported types is determined externally). Consistently renamed primitive types lower case (boolean, string, number, null) and non-primitive types uppercase (Complex, BigNumber, Function, Array, ...). 2015-05-20 21:08:26 +02:00
Max Bruckner
e69f0c6df9 Update pretty printing example to the new API 2015-05-16 13:32:25 +02:00
Max Bruckner
fa4fba4dbf Implement parenthesis options in pretty printing example 2015-05-08 09:07:25 +02:00
jos
01497799fb Added an example on plotting a function 2015-04-15 21:31:01 +02:00
jos
0cdbd9022b Updated chaining example in the readme. Updated comments in some examples 2014-12-26 11:32:15 +01:00
jos
8b253f050b Renamed function select to chain 2014-12-25 17:05:29 +01:00
jos
e1b3effb90 Released version 1.0.0. whohooo 2014-09-04 21:27:07 +02:00
jos
4a98f6efd4 Updated docs 2014-08-16 18:00:23 +02:00
jos
fa10724b95 Bumped version number to v0.25.1-SNAPSHOT 2014-07-01 20:47:57 +02:00
jos
3cc93fd0b9 Minor tweaks in the examples 2014-07-01 10:28:31 +02:00
jos
7d84e4daf0 Math.js now immediately returns a default instance of mathjs, no need to create an instance every time you want to use the library. 2014-06-20 23:11:14 +02:00
jos
b9ec058af0 Released version 0.23.0 2014-06-10 21:43:08 +02:00