Skip to content

A simple algebric manipulator that sums, derivates or integrates polynomials.

License

Notifications You must be signed in to change notification settings

andreluis034/ManipuladorAlgebrico

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algebric Manipulator

A simple algebric manipulator that sums, derivates or integrates polynomials.

Getting Started

Clone the project into a local folder:

git clone https://github.com/andreluis034/ManipuladorAlgebrico.git

Change into the created folder and build the project using: make

Prerequisites

To build the project you must have the following packaged installed:

  • GNU Compiler Collection
  • GNU Make

On Debian and Debian based distributions installing the build-essential package will suffice:

apt-get install build-essential

Installing

After cloning the repository and installing the prerequisites:

Build the project using make

make algebra.out

Since this is a small project it shouldn't take long to build it. After it has been built the project binary, algebra.out, will be in the project root folder.

Examples

When asked for a polynomial it should come from standard input with the following regular expression:

([\+\-]?([0-9]*[\.]?)[0-9]*[A-Za-z]*([\^][0-9]+)?)*

This expression does not take into account the spaces from input as these are ignored when reading the input.

Although multiple variables are supported in a "monomial" you should not repeat the same variable twice.

Here are some examples of valid inputs:

  • 5x^3254
  • 532xyz^3254 + 6xy^23 - .5
  • 5.65x^3254
  • .62548

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A simple algebric manipulator that sums, derivates or integrates polynomials.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published