Coder Social home page Coder Social logo

Unable to plot about numara-calculator HOT 16 CLOSED

bornova avatar bornova commented on June 14, 2024
Unable to plot

from numara-calculator.

Comments (16)

bornova avatar bornova commented on June 14, 2024 1

Hi @Boldan,
Just released v4.1.1 with the fix. Please let me know if you find anything else that doesn't look right and thank you for reporting!

from numara-calculator.

bornova avatar bornova commented on June 14, 2024

Hi @Boldan,
Thank you for reporting the issue. It is indeed a bug. It seems esbuild is not able to handle the default export of function-plot package. I am surprised I didn't catch it during testing but will try to release a fix ASAP. In the meantime, feel free to downgrade to v4.0.8 if possible.

from numara-calculator.

Boldan avatar Boldan commented on June 14, 2024

Excellent, the repair speed is so fast

from numara-calculator.

Boldan avatar Boldan commented on June 14, 2024

I have a suggestion to see if you can use the Tab key as easily in Numara as you do in JetBrains, where it can jump between the right positions

from numara-calculator.

Boldan avatar Boldan commented on June 14, 2024

I have a suggestion to see if you can use the Tab key as easily in Numara as you do in JetBrains, where it can jump between the right positions

If it can be achieved, it is very practical

from numara-calculator.

bornova avatar bornova commented on June 14, 2024

Hi @Boldan, I am not familiar with JetBrains. Can you elaborate on your request please?

from numara-calculator.

Boldan avatar Boldan commented on June 14, 2024

Hi @Boldan, I am not familiar with JetBrains. Can you elaborate on your request please?

f(x)=x^2+1
Take the above function as an example: when you enter f(x), the cursor stays behind x, and when you press the Tab key, the cursor moves after ).
When you type x^2, it is displayed as x², which is more intuitive.
Right-click to add a copy as TeX or LaTeX.
I'm very sorry, my English is not good.I also put forward many suggestions that may be bad.

from numara-calculator.

Boldan avatar Boldan commented on June 14, 2024

Hi @Boldan, I am not familiar with JetBrains. Can you elaborate on your request please?

I'm not sure if this is a BUG.In the settings, it doesn't take effect when you set User local.

from numara-calculator.

bornova avatar bornova commented on June 14, 2024

Hi @Boldan, English is not my native language either so you are fine. And no suggestion is a bad suggestion 😃 I appreciate the feedback.

In Numara, tab key is used to either insert a tabbed space, or autocomplete the suggested function when typing. I can look into adding the possibility to move the cursor after the ) when tab key is pressed but can't promise it will be anytime soon. In case you don't want the closing bracket to be automatically inserted, you can turn that feature off in Settings (Toggle 'Close matching brackets' to off).

Changing x^2 to x² while typing won't be supported I am afraid. Changing that behavior could have broader implications.

Right-click to add a copy as TeX or LaTeX. Now this I can do. Math.js has a toTex() built in so should be fairly easy to implement. However, I don't think it is that great. You still need to take that latex string and pretty print it using another library so not sure if that's very useful.

from numara-calculator.

bornova avatar bornova commented on June 14, 2024

I'm not sure if this is a BUG.In the settings, it doesn't take effect when you set User local.

Setting the user locale only affects the way decimal points, thousand separators and dates are displayed. For example, 1234.56 in US would be displayed as 1,234.56 where as in German it would be 1.234,56. Same for dates, 10/25/2023 in US vs. 25.10.2023 in Germany.

from numara-calculator.

Boldan avatar Boldan commented on June 14, 2024

I'm not sure if this is a BUG.In the settings, it doesn't take effect when you set User local.

Setting the user locale only affects the way decimal points, thousand separators and dates are displayed. For example, 1234.56 in US would be displayed as 1,234.56 where as in German it would be 1.234,56. Same for dates, 10/25/2023 in US vs. 25.10.2023 in Germany.

Okay, I understand. Thanks for your answer.

from numara-calculator.

Boldan avatar Boldan commented on June 14, 2024

Hi @Boldan, English is not my native language either so you are fine. And no suggestion is a bad suggestion 😃 I appreciate the feedback.

In Numara, tab key is used to either insert a tabbed space, or autocomplete the suggested function when typing. I can look into adding the possibility to move the cursor after the ) when tab key is pressed but can't promise it will be anytime soon. In case you don't want the closing bracket to be automatically inserted, you can turn that feature off in Settings (Toggle 'Close matching brackets' to off).

Changing x^2 to x² while typing won't be supported I am afraid. Changing that behavior could have broader implications.

Right-click to add a copy as TeX or LaTeX. Now this I can do. Math.js has a toTex() built in so should be fairly easy to implement. However, I don't think it is that great. You still need to take that latex string and pretty print it using another library so not sure if that's very useful.

Your analysis makes sense, I agree with your answer.

from numara-calculator.

Boldan avatar Boldan commented on June 14, 2024

IMG_20231122_184435.jpg

When you enter f (x) = x^2,Clicking plot will pop up this BUG.

from numara-calculator.

bornova avatar bornova commented on June 14, 2024

Hi @Boldan,
This is a limitation of Math.js unfortunately. You must have BigNumber numeric output chosen under Calculator options in Settings:
image

I tried to offer a warning when this option is selected, which is available if you click the orange info icon:
image

If you choose 'Number' as the numeric output in Settings then the plot should work as expected.

from numara-calculator.

Boldan avatar Boldan commented on June 14, 2024

I'm sure, I have set it up like yours.

from numara-calculator.

bornova avatar bornova commented on June 14, 2024

Hi @Boldan,
I only get that error when BigNumber option is selected. It seems to work as expected on my end. If you are still having issues, resetting the app may resolve it.

Screen.Recording.2023-11-22.at.10.47.57.PM.mov

from numara-calculator.

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.