Code Monkey home page Code Monkey logo

oopex1-monom_and_polynom's Introduction

Hi, I'm Tom Latin _קובץ מאת tomlatin (1)

I'm currently a software developer at Fairtility 🖥️
I love learning new technologies, and deepening my knowledge of technologies I already know 🤓

Programming Languages 🚀



Tools 🔥



Operating Systems



Connect with me 📫

oopex1-monom_and_polynom's People

Contributors

arielduek avatar tomlatin avatar

Watchers

 avatar  avatar

Forkers

arielduek

oopex1-monom_and_polynom's Issues

What happens if you bring in to the software a monom that the coefficient is invalid or invalid power or the string has invalid spaces??

If one of the three things does happen, that is the monom coefficient is invalid or r invalid power or the string has invalid spaces, we throw an error type NumberFormatException and the software stops.

*In examples a denotes the coefficient and b denotes possession

Examples of invalid inputs:
7tl,4^2,(4+8),84,3/5,4..4,(6-7),(2+2)x^4,x^23,3t,3t^7,x^23,xx,ax ^b,ax^ b,ax^-b, ax^b .

Examples of good inputs:
a,-a,ax,-ax,x,-x,ax^b,-ax^b,x^b,-x^b,a x^b

Read from file

Our initFromFile read from file complexFunction line by line, No additions like f (X) and so on

Function equals

How equals work: this method check if given Object c is equals to this ComplexFunction. The test is done by checking whether within a certain number range the two functions return the same Y value when both have the same X value.If one of the values returns the function FALSE then another check is made if 16 digits after the point are equal, then the test continues. This is all wrapped up in try..catch because if one of the values resets one of the functions and causes a divide by 0 the test will not stop. We will note that if it is precisely this value that indicates that our functions are not worth our function, you will not be able to recognize them.

This test is not 100% believable because for us to say that the functions are equal, we must conclude that for all value X, the two functions return the same value Y, which is not possible in computer science, so we took a representation range of numbers.

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.