Comments (11)
Hi, there's no evaluation on Latexise. Can you give an example / post code?
from angourimath.
Hi, sure, I will give you a simple one, "0.86 * (WV/190)^2".Latexise(); returns
also for some reason, hyperbolic tan is dealt with in it´s exponential form and messing up the equation badly,
using this code "(0.578)/sqrt(tanh((3.68*Hf)/(D)))".Latexise() gives you what what is given above
from angourimath.
Hi, sure, I will give you a simple one, "0.86 * (WV/190)^2".Latexise(); returns
also for some reason, hyperbolic tan is dealt with in it´s exponential form and messing up the equation badly,
using this code "(0.578)/sqrt(tanh((3.68*Hf)/(D)))".Latexise() gives you what what is given above
the only thing which could lead to such case is evaluating/simplifying the expressions at some point after calling Latexise() function
from angourimath.
Here's the result in my case for the first one:
from angourimath.
also for some reason, hyperbolic tan is dealt with in it´s exponential form and messing up the equation badly
Yeah, that's fair. The reason is because we don't have a separate entity for tanh
, so it's just straight substituted, like this
from angourimath.
Let me check my code, I will be back.
from angourimath.
Hi, "Ac * Wc".Latexise() for some reason doesn´t show the multiplication sign, as for the upper problems it turned out that I used another library, my bad
"((PWS) * D * (H^2) )/ 2" is below
from angourimath.
is there a way to allow the parser to deal with certain characters as variables ?
the problem is => Q * Fv * (S1) is written as
from angourimath.
"Ac * Wc".Latexise() for some reason doesn´t show the multiplication sign
Yeah. The idea was to mimic math notation, where we also often omit it. I agree that it's ambiguous in this case, thanks for the report.
the problem is => Q * Fv * (S1) is written as
For subscript use _
, like this:
from angourimath.
"Ac * Wc".Latexise() for some reason doesn´t show the multiplication sign
Yeah. The idea was to mimic math notation, where we also often omit it. I agree that it's ambiguous in this case, thanks for the report.
the problem is => Q * Fv * (S1) is written as
regarding the disappearance of the multiplication sign, is there a way to just turn it of ? or force it to always write it?
from angourimath.
I'm afraid, no. You can make a workaround the following way:
- Create your own node instead of
Entity.Mulf
, e. g.ExplicitMul
and inherit it fromEntity
- Using method
Replace
you can replace it with your node:
public Entity ReplaceMul(Entity expr) => expr switch
{
Entity.Mulf(var a, var b) => new ExplicitMul(a, b),
var other => other
};
...
var newExpr = expr.Replace(ReplaceMul);
And for your ExplicitMul
, override method Latexise
to always display the multiplication sign. Here's the current implementation of Latexise for Entity.Mulf
from angourimath.
Related Issues (20)
- [WIP] Complete redesign of AngouriMath.FSharp
- Variable with number in name HOT 3
- Matrix Concat HOT 1
- Hangs on imprecise number base conversions
- Docs tracking issue
- supporting if, max and min statements HOT 1
- Unexpected behavior of limits
- Simplify() question HOT 3
- Fix CI builds HOT 2
- Function `info`
- Cells' outputs in a variable for the terminal
- Precision is being lost somewhere
- how to write a string which can create nth root latex HOT 2
- Logical calculation HOT 4
- how to use != in expression HOT 4
- CLI HOT 1
- Cannot solve a linear system HOT 1
- Merge AngouriMath.Experimental into AngouriMath
- Consider adding support for StringSyntax attribute HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angourimath.