Skip to content

Commit

Permalink
Deploying to gh-pages from @ ad540b4 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
dvd101x committed May 5, 2024
1 parent 4e1ec7e commit 1ab411b
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 72 deletions.
161 changes: 93 additions & 68 deletions assets/index-pUs1fGb-.js → assets/index-CtBF0OFC.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<link rel="icon" type="image/png" sizes="16x16" href="./assets/favicon-16x16-C1m-SE63.png">
<link rel="manifest" href="./assets/site-BwHFeIBa.webmanifest">
<script src="https://cdn.plot.ly/plotly-2.31.1.min.js" charset="utf-8"></script>
<script type="module" crossorigin src="./assets/index-pUs1fGb-.js"></script>
<script type="module" crossorigin src="./assets/index-CtBF0OFC.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-eRBxrM37.css">
</head>
<script src="./getWorker.js"></script>
Expand Down
9 changes: 6 additions & 3 deletions mathWorker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


importScripts(
"https://cdnjs.cloudflare.com/ajax/libs/mathjs/12.4.1/math.js",
"coolprop.js",
Expand Down Expand Up @@ -256,7 +254,12 @@ function processExpressions(expressions) {
}

function formatObject(obj) {
return eval(math.format(obj).toString())
const matrix = math.config().matrix
const formatedObject = math.format(obj)
math.config({ matrix: 'Array' })
const objResult = math.evaluate(formatedObject)
math.config({matrix: matrix})
return objResult
}

function processOutput(content, type) {
Expand Down

0 comments on commit 1ab411b

Please sign in to comment.