Giter Site home page Giter Site logo

Comments (11)

WhiteBlackGoose avatar WhiteBlackGoose commented on May 26, 2024

Hi, there's no evaluation on Latexise. Can you give an example / post code?
image

from angourimath.

TheOOnewbie avatar TheOOnewbie commented on May 26, 2024

Hi, sure, I will give you a simple one, "0.86 * (WV/190)^2".Latexise(); returns

image

also for some reason, hyperbolic tan is dealt with in it´s exponential form and messing up the equation badly,

image

using this code "(0.578)/sqrt(tanh((3.68*Hf)/(D)))".Latexise() gives you what what is given above

from angourimath.

TheOOnewbie avatar TheOOnewbie commented on May 26, 2024

Hi, sure, I will give you a simple one, "0.86 * (WV/190)^2".Latexise(); returns

image

also for some reason, hyperbolic tan is dealt with in it´s exponential form and messing up the equation badly,

image

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.

WhiteBlackGoose avatar WhiteBlackGoose commented on May 26, 2024

Here's the result in my case for the first one:
image

from angourimath.

WhiteBlackGoose avatar WhiteBlackGoose commented on May 26, 2024

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.

TheOOnewbie avatar TheOOnewbie commented on May 26, 2024

Let me check my code, I will be back.

from angourimath.

TheOOnewbie avatar TheOOnewbie commented on May 26, 2024

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

image

"((PWS) * D * (H^2) )/ 2" is below
image

from angourimath.

TheOOnewbie avatar TheOOnewbie commented on May 26, 2024

is there a way to allow the parser to deal with certain characters as variables ?

the problem is => Q * Fv * (S1) is written as
image

from angourimath.

WhiteBlackGoose avatar WhiteBlackGoose commented on May 26, 2024

"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:
image

from angourimath.

TheOOnewbie avatar TheOOnewbie commented on May 26, 2024

"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: image

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.

WhiteBlackGoose avatar WhiteBlackGoose commented on May 26, 2024

I'm afraid, no. You can make a workaround the following way:

  1. Create your own node instead of Entity.Mulf, e. g. ExplicitMul and inherit it from Entity
  2. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.