Added back MathjsWrapper, which I accidentally lost
This commit is contained in:
		
							parent
							
								
									41eca03618
								
							
						
					
					
						commit
						9f30b6d75c
					
				
							
								
								
									
										9
									
								
								src/distPlus/expressionTree/MathjsWrapper.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								src/distPlus/expressionTree/MathjsWrapper.js
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,9 @@ | ||||||
|  | const math = require("mathjs"); | ||||||
|  | 
 | ||||||
|  | function parseMath(f) { | ||||||
|  |     return JSON.parse(JSON.stringify(math.parse(f))) | ||||||
|  | }; | ||||||
|  | 
 | ||||||
|  | module.exports = { | ||||||
|  |     parseMath, | ||||||
|  | }; | ||||||
|  | @ -58,9 +58,9 @@ module Scale = { | ||||||
| 
 | 
 | ||||||
|   let format = (operation: t, value, scaleBy) => |   let format = (operation: t, value, scaleBy) => | ||||||
|     switch (operation) { |     switch (operation) { | ||||||
|     | `Multiply => {j|scaleMultiply($value, $scaleBy) |j} |     | `Multiply => {j|verticalMultiply($value, $scaleBy) |j} | ||||||
|     | `Exponentiate => {j|ScaleExponentiate($value, $scaleBy) |j} |     | `Exponentiate => {j|verticalExponentiate($value, $scaleBy) |j} | ||||||
|     | `Log => {j|ScaleLog($value, $scaleBy) |j} |     | `Log => {j|verticalLog($value, $scaleBy) |j} | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|   let toKnownIntegralSumFn = |   let toKnownIntegralSumFn = | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user