Giter Site home page Giter Site logo

mathbunny / newton-raphson Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 0.0 5.39 MB

Software that does computational root determination, using Newton's method

Home Page: http://www.horatiulazu.ca/software/projects/newton.html

Java 100.00%
newton-raphson root-solver mathematics expression-parsing dijkstra-shunting-yard

newton-raphson's Introduction

Hi there ๐Ÿ‘‹

I am Horatiu Lazu ๐Ÿ‡จ๐Ÿ‡ฆ ๐Ÿ‡ท๐Ÿ‡ด, 22 years old and a Software Engineer at Facebook in NYC. I am a firm believer in fundamentals ๐Ÿ“–, always looking to learn and grow my skillset ๐Ÿ“ˆ. Feel free to reach out to me ๐Ÿ“ง!


  • ๐Ÿ”จ Formerly interned at Google, Facebook, Citadel Securities, Yelp, and Bloomberg LP
  • ๐Ÿ“š Computer Science at the University of Waterloo, Class of 2021
  • ๐Ÿ˜ Algorithms, distributed systems, operating systems, information retrieval
  • ๐Ÿšด Road biking, tennis, ice-skating, hiking
  • ๐Ÿ’ฌ Ask me about internships, academics, balancing commitments

Languages: Java, C++ and Python.

newton-raphson's People

Contributors

mathbunny avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

newton-raphson's Issues

Can I download a compiled .jar for run in ubuntu terminal?

NewtonRaphsonApp.java is not working. When I try to run the project, is what I get:

Print

Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: input == null!
at javax.imageio.ImageIO.read(ImageIO.java:1388)
at classes.NewtonRaphsonApp.fetchImages(NewtonRaphsonApp.java:79)
at classes.NewtonRaphsonApp.paint(NewtonRaphsonApp.java:152)
at javax.swing.RepaintManager$4.run(RepaintManager.java:842)
at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: input == null!
at javax.imageio.ImageIO.read(ImageIO.java:1388)
at classes.NewtonRaphsonApp.fetchImages(NewtonRaphsonApp.java:79)
at classes.NewtonRaphsonApp.paint(NewtonRaphsonApp.java:152)
at javax.swing.RepaintManager$4.run(RepaintManager.java:842)
at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Support decimals

I want solve this equation using Newton Raphson's method with guess as 76.

(1000 * 10.00) / (((6.18119 * (10 ^ -7)) * (X ^ 3) - 0.00015707 * (X ^ 2) + 0.013424704 * X + 0.52064176) * 0.9957 * 9.787 * (332.70 - 317.00 โ€“ (0.646 * ((X / 95.2) ^ 2) + 0.37793 - 0.33 * ((X / 95.2) ^ 2)))) - X

Using UI version, I got the message "Notice: Decimals are not supported in this version!".
There is any prevision for this support?

There is not a support for negative numbers?

It works:

Please input expression.
x*2
Please enter guess:
10
Solution Found at: x= 0.0
Answer: 0.0

It isn't works:

Please input expression.
x*-2
Please enter guess:
10
Exception in thread "main" java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:102)
at java.util.Stack.pop(Stack.java:84)
at classes.PostfixEvaluater.evaluate(PostfixEvaluater.java:37)
at classes.Operation.operate(Operation.java:21)
at classes.Operation.compute(Operation.java:36)
at classes.NewtonRaphsonConsole.compute(NewtonRaphsonConsole.java:29)
at classes.NewtonRaphsonConsole.mainMenu(NewtonRaphsonConsole.java:79)
at classes.NewtonRaphsonConsole.main(NewtonRaphsonConsole.java:14)

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.