Skip to content
Swift framework to simplify radicals.
Swift Objective-C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
EasyRoot.xcodeproj
EasyRoot.xcworkspace
EasyRoot
EasyRootTests
docs
fastlane
.gitattributes
.gitignore
.swiftlint.yml
.travis.yml
EasyRoot.podspec
Gemfile
Gemfile.lock
LICENSE
Podfile
Podfile.lock
README.md

README.md

Logo

A Swift framework for simplifying radicals.

Build Status

Usage

CocoaPods

Add EasyRoot to your Podfile:

pod 'EasyRoot'

And run pod install

Example

To use the Radical object:

// Simplify the square root of 27
// Create the radical object
let expression = Radical(root: 27)
// Simplify the expression
expression.simplify()
// Print the result
print("\(expression.coefficient) roots of \(expression.radicand)")
// => 3 roots of 3

Currently, the expression will remain the same if the simplified result contains an imaginary number.

For more examples, see the documentation

Features

Currently supports simplifying integer-only radicals. For example:

  • Root 4
    • Result: 2
  • 3 root -27
    • Result: -3

And so forth.

Contributing

Bugs

Feel free to open issues for any bugs found.

Pull Requests

If you wish to contribute to EasyRoot, create a new branch, implement your feature or fix, and then submit a pull request.

Documentation

Generate documentation with Jazzy

You can’t perform that action at this time.