Giter Club home page Giter Club logo

opencal's Introduction

OpenCAL

OpenCAL is an open-source calculator application with multiple engine types, offering a variety of mathematical operations.

Features

  • Four Engine Types:

    Engine Type Description
    engine-1: Basic arithmetic operations (add, subtract, multiply, divide)
    engine-2: Faster arithmetic operations (faster_add, faster_subtract, faster_multiply, faster_divide)
    engine-3: Advanced math operations (cube, square, cubic_root, square_root)
    engine-4: Custom functions and advanced operations (power, log_base_10, absolute_value, exponential, sin, cos, tan, arcsin, arccos, arctan, cube, square)
  • User-friendly Interface:

    • Select the desired engine type.
    • View detailed features, including descriptions and functions.
    • Support for mathematical expressions with error handling.

Engine Overview

engine-1: Basic Arithmetic

The engine-1 is designed for fundamental arithmetic operations, providing a solid foundation for everyday calculations.

  • Operations:
    • Addition (add)
    • Subtraction (subtract)
    • Multiplication (multiply)
    • Division (divide)

engine-2: Faster Arithmetic

Engine-2 enhances arithmetic operations, prioritizing speed and efficiency for quicker calculations.

  • Operations:
    • Faster Addition (faster_add)
    • Faster Subtraction (faster_subtract)
    • Faster Multiplication (faster_multiply)
    • Faster Division (faster_divide)

engine-3: Advanced Math

Engine-3 introduces advanced mathematical operations, extending the calculator's capabilities beyond basic arithmetic.

  • Operations:
    • Cube (cube)
    • Square (square)
    • Cubic Root (cubic_root)
    • Square Root (square_root)

engine-4: Custom Functions and Advanced Operations

Engine-4 is a versatile engine that supports custom functions and a wide range of advanced mathematical operations.

  • Operations:
    • Power (power)
    • Logarithm (Base 10) (log_base_10)
    • Absolute Value (absolute_value)
    • Exponential (exponential)
    • Trigonometric Functions (sin, cos, tan, arcsin, arccos, arctan)
    • Cube (cube)
    • Square (square)

Example Implementation

from calculator_engine import create_calculator_engine

# Create a calculator engine of type "engine-3"
calculator_engine = create_calculator_engine(engine_type="engine-3")

# Use the calculator engine
result = calculator_engine.tcalculator_engine("cube(3) + square_root(16)")
print(result)  # Output: 27.0

Usage

  • Select an engine type (1-4) to leverage specific features.
  • Enter mathematical expressions to get results.
  • Type 'back' to change the engine type and 'exit' to quit the calculator.

Open Source Information

This project is open-source under the MIT License, providing flexibility for usage, modification, and distribution.

Feel free to contribute, report issues, or use the code in your projects!

License

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


This version includes a tabulated view of the engine types for better clarity. Adjust it based on your specific repository details and preferences.

opencal's People

Contributors

tiyonotfound avatar

Watchers

 avatar

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.