Skip to content

A Limits Simulator is a command-line tool that helps users visualize the limits of mathematical functions as a variable approaches a specific value.

License

Notifications You must be signed in to change notification settings

mrbhanukab/limits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Limits Simulator

A Limits Simulator is a command-line tool that helps users visualize the limits of mathematical functions as a variable approaches a specific value.

Watch the video

Video:- https://www.youtube.com/watch?v=ZRb3XgcyKiI

Table of Contents

Introduction

The Limits Simulator is a tool designed to help users understand the concept of limits in calculus. It allows users to input a mathematical function, a value for the variable, and a range around the variable to visualize the behavior of the function as the variable approaches the given value.

Features

  • Allows users to input a mathematical function and a value for the variable.
  • Visualizes the behavior of the function as the variable approaches the given value.
  • Supports a range around the variable for visualization.

Technologies Used

  • Language/Framework: Go
  • Library: govaluate (for evaluating mathematical expressions)

Supported Operating Systems

Windows Mac Linux

Also Support
  • aix/ppc64
  • android/386
  • android/amd64
  • android/arm
  • android/arm64
  • darwin/amd64
  • darwin/arm64
  • dragonfly/amd64
  • freebsd/386
  • freebsd/amd64
  • freebsd/arm
  • freebsd/arm64
  • freebsd/riscv64
  • illumos/amd64
  • ios/amd64
  • ios/arm64
  • js/wasm
  • linux/386
  • linux/amd64
  • linux/arm
  • linux/arm64
  • linux/loong64
  • linux/mips
  • linux/mips64
  • linux/mips64le
  • linux/mipsle
  • linux/ppc64
  • linux/ppc64le
  • linux/riscv64
  • linux/s390x
  • netbsd/386
  • netbsd/amd64
  • netbsd/arm
  • netbsd/arm64
  • openbsd/386
  • openbsd/amd64
  • openbsd/arm
  • openbsd/arm64
  • openbsd/ppc64
  • plan9/386
  • plan9/amd64
  • plan9/arm
  • solaris/amd64
  • wasip1/wasm
  • windows/386
  • windows/amd64
  • windows/arm
  • windows/arm64

Limits of "Limits Simulator"

  • The function variable should be denoted by 'x'.
  • Trigonometric functions (e.g., sin, cos, tan) are not supported.
  • The value of X cannot be set to infinity (e.g., x->infinity is not supported).
  • Only these arithmetic operators are supported: -, , /, ** or ^, % (* and ^ refers to "take to the power of", for example 2**2 or 2^2 is equal to 4.)

Setup & Installation

Recommended Way for Most Users

  chmod +x ./limits-linux-amd64
  • Step 4: Open a terminal or command prompt in that directory.
  • Step 5: Run the executable file by typing its name and pressing Enter.
    • For example, on Windows: limits-windows-amd64.exe
    • For example, on macOS: ./limits-darwin-amd64
    • For example, on Linux: ./limits-linux-amd64

Build by Yourself

Prerequisites

  • Go installed on your machine.

Steps

  1. Clone the repository: git clone https://github.com/mrbhanukab/limits.git.
  2. Navigate to the project folder: cd limits
  3. Build the project: go build.
  4. Run the executable file for your operating system located in the build directory.

Usage

To use the Limits Simulator, follow these steps:

  1. Enter a mathematical function when prompted.
  2. Provide a value for the variable (x).
  3. Specify the range around the variable for visualization.
  4. The simulator will display the behavior of the function as the variable approaches the given value.
you@computer:/path/to/project/limits$ ./build/limits-linux-amd64

{Logo & Notes will visible here}

Enter the function:
2*x^5+8*x-5
Value of X (x->?):
0
Range around X (e.g., if you enter 2, it will use 2 -> -2):
4
Step size for evaluation:
1
⬇️ -4.00 -> -2085.00
⬇️ -3.00 -> -515.00
⬇️ -2.00 -> -85.00
⬇️ -1.00 -> -15.00
⬇️ 0.00 -> -5.00
🔽

0.00 -> -5.00

🔼
⬆️ 1.00 -> 5.00
⬆️ 2.00 -> 75.00
⬆️ 3.00 -> 505.00
⬆️ 4.00 -> 2075.00



 Limit of 2*x**5+8*x-5 as (x -> 4.00) approaches -5.00

License

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

Credits

Limits Simulator is created by Bhanuka Bandara. Feel free to contribute, report issues, or provide suggestions on the GitHub repository.

github linkedin Mastodon Kaggle

About

A Limits Simulator is a command-line tool that helps users visualize the limits of mathematical functions as a variable approaches a specific value.

Topics

Resources

License

Stars

Watchers

Forks

Languages