Skip to main content

An open source library containing multiple known STEM equations in a functional form.

Project description

simple-equ

An open source library containing multiple known STEM equations in a functional form.

Installation

pip install simple-equ

(For versions 3.8 or newer)

Optional: Use a venv (virtual environment).

Usage

simple-equ is simple, yet practical. That is the problem it solves. Sure, someone with some knowledge in their field can implement this library's functionality. But, let's look at how that would realistically look like:

a = 3
b = 4
c = 4

"""
Here is an example of implementing a basic quadratic equation
"""
import math

delta = b**2 - 4 * a * c
solution1 = (-b + math.sqrt(delta)) / (2 * a)
solution2 = (-b - math.sqrt(delta)) / (2 * a)

"""
Here, just an import and a function call is needed!
"""

import simple_equ.math_general.algebra as sa

result = sa.basic_quadratic(a,b,c)
Looking to calculate the sin of an angle?
Well... here is the algorithm to do this, in pseudo-code

function sin_taylor(x, n_terms):
    result = 0
    sign = 1             # alternates between + and -

    for i from 0 to n_terms-1:
        term_exponent = 2*i + 1
        term_factorial = factorial(term_exponent)
        term = sign * (x ^ term_exponent) / term_factorial
        result = result + term
        sign = -sign     # flip the sign for next term

    return result

function factorial(k):
    if k == 0 or k == 1:
        return 1
    else:
        f = 1
        for j from 2 to k:
            f = f * j
        return f

"""

import simple_equ.math_general.geometry as sg
sin30 = sg.sin(30) # In case you didn't notice, this is the same thing in simple_equ
"""
Normally, we would put a linear regression here. But it is pretty monstrous.
Worry not though. This is how to do it with simple-equ:
"""

import simple_equ.economics.statistics as se

se.linear_regression([3, 4, 6],[4, 6, 7])

You just import the field of your liking, and then boom!

Structure

The library is structured into fields. These fields have their own folder, aka modules. However, a field can have multiple subsets. These subsets are usually present in the form of python files. For example: algebra.py and geometry.py, are examples of subfields of the general math field called math_general.

To import something in a practical sense in simple_equ, the structure looks like this:

import simple_equ.field.subfield as ...

Practical examples include: import simple_equ.math_general.geometry as sg import simple_equ.economics.statistics as se

Contributing

Contributions are always welcome!

The project encourages a community-driven approach. Everyone can contribute. Be sure to be kind and respectful. Do not assume that something is known to the contributor you are talking to just because you know it and do not be rude or even make comments about their skill. This behaviour is not welcome here.

See contributing.md for ways to get started.

Features

  • Community driven and open
  • Functions from different fields
  • Reusable
  • Highly accurate
  • Simple yet practical

Do not forget to star the repo if you like it! It means a lot! Thank you for reading this document and getting involved with our community :)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

simple_equ-1.3.86-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

simple_equ-1.3.86-cp312-cp312-win32.whl (114.4 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.3.86-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.86-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.86-cp311-cp311-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.3.86-cp311-cp311-win32.whl (115.6 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.3.86-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.86-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.86-cp310-cp310-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.86-cp310-cp310-win32.whl (115.9 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.3.86-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.86-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.86-cp39-cp39-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.86-cp39-cp39-win32.whl (116.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.3.86-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (298.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.86-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.3.86-cp38-cp38-win_amd64.whl (118.2 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.3.86-cp38-cp38-win32.whl (116.6 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.3.86-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.0 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.86-cp38-cp38-macosx_11_0_arm64.whl (120.2 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.3.86-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.86-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.86-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 91ca9e441ad49657fba61cefb9d4682fe10403570f75074c687a4f8187f0a75d
MD5 7d6b24e9c4e053a0aa3da04977c13204
BLAKE2b-256 31d91bdc00191f7eda528c238f91584f80f01ae4442d9151e9fab65b14f2ab08

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.86-cp312-cp312-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.86-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.4 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.86-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5f10128fe5b64f10f8218f5f6bcb7370863f54067a0bc2ac6162ed421cfe4a9a
MD5 d8f6e0fbe4c4db757036982d2aa24cd1
BLAKE2b-256 1d14c8f833f873836d3fbe2b8dee937a750172956eb611f16f8c116b1a6a65f7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.86-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.86-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3a81dfa657142af6c744f81541af4a73f4d34080adbef754b827ee15436ec630
MD5 42b686855fb0d4c885a35d79e46fe8d7
BLAKE2b-256 08718c82540644a9f13be4950b2bbe196aa640e7e0cd0048990c865d97195b79

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.86-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.86-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 40dd7df4e8ca2a2c0d16efebc04d9e0e5c990fc3f8a92160467850995cb6f613
MD5 39413000a29df7bd13b18bcf0cda0061
BLAKE2b-256 ff21e57b138d176d64af7af8560d78aef4824f8151cf65480aa6350d2a89d98a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.86-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.86-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.86-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d6033d529d2c24a236e59d788b46691f218fe57ad4a53c4c9008623f023624c4
MD5 01618ac674742966679e7b2237f37e23
BLAKE2b-256 e5a60853958b11402aca08e9aeb92d126f0f1506c5b20d4cbac5f5d5254f521c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.86-cp311-cp311-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.86-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.6 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.86-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7033f236e03b15d41d6886546dcf0ba84d8e680b8fd23100b13adbb3bd262afb
MD5 c83b3bb8472c9e16bc2d670cd8969576
BLAKE2b-256 89bc3714ce3c8ab2d4f8d69bd734cd2d097e2570d31116b48b45bc50b1ac842d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.86-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.86-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af3f4b148279a35a1356139bd0e09d458df39325eab38a6c37a6978603f45cd4
MD5 b573263e45f5c7bf03e4fc66f223b81e
BLAKE2b-256 e546d3e9740dc4e21454153d4e650a2dd325fc5821685f0527a1b3f243de929c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.86-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.86-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0462b4ac45807692d976c0ab27c4ee5329c1b462ff825a8130045eeb27aa6858
MD5 0ce5b60d98caf7604966b2769b687841
BLAKE2b-256 bfb196413cf8feb332d2e40ce807ce2a32d37f47128d578eb187a6f520bd0daf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.86-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.86-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.86-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e9cc6c7c260d0d94be27e2c64d69921f674a03785e6e67e9c79f3f744cda827d
MD5 db69a43d24c456f3910cb018f93da975
BLAKE2b-256 6c06fd6e971a235f57fe9717eee72fcb3cf9caa62823de6ac1c17f0caa506b85

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.86-cp310-cp310-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.86-cp310-cp310-win32.whl
  • Upload date:
  • Size: 115.9 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.86-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 52c71503a5062564f4e0ba51fbd74ced56534cdaa6976a1eb494dc666cd6735e
MD5 891f8550c8f653f3abb1ee3f0b114d87
BLAKE2b-256 be4d9298cf530bb384156362e046510ca154df2940ab445e869270d48838d2a3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.86-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.86-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4eaef00b7c0c115fe856d46639b99a0bc4f36d178080341266b9d31af439512b
MD5 a6654d46fe786a8baa38226bfbaedaf2
BLAKE2b-256 c91107a6e859b6d9b6979599659379492615eb5a0e715381c927324c0dad6714

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.86-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.86-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd343c63f21f5aed5f2bc9f1a90ca24112eb426d4fc4270ea4829c100b238a9c
MD5 5a034bd26d2613b72c9a5e23034a030f
BLAKE2b-256 f1c05633769fae261959d30afc72bf1666d813c8f84d3ec9f16306015a0f72e8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.86-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.86-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.86-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3039085d791c72c7350c51fd95f57306a440dca4f9bb83232030984217d7ed1a
MD5 94ae748a9b1dd7a96b0fd49d143cb8b8
BLAKE2b-256 4c9cc8d6a552efc941fd6aff9892db98a3c28e279f85e9069b64fbe03149a323

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.86-cp39-cp39-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.86-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.0 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.86-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 03465ab98fbac483428f7db44a8f1fabd26ad94a368ab98f2e079f22b969bde3
MD5 a2a0ac086e293ceeae181b786efed721
BLAKE2b-256 cfe54cc5808ed414dcce0cb6c0da9aba95cee28b3d3df3248db43f387f91cebb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.86-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.86-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a25d028b8b5ce4362e04ae39aa051bd234ca650e93da5340aae655c3c9e3256f
MD5 169814d5cf5b533294a4a0b50e413195
BLAKE2b-256 4c61df56fb6d83a205c7b1703117bf3f447288d55adb065a90d19f838799c1d5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.86-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.86-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a1c722c9a3a7d14bbc97e8f78bab9af67b64de954f73a7d7ce10b8abe6f96d69
MD5 d01e687b0482184389aa8b0be9bbbbbf
BLAKE2b-256 028febed764411fb2c99346a00750bb746552b436b2f014f3b7c088dfccad9fa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.86-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.86-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.86-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bc685493e922d4e5059d9bd9a89d9e396f0e21772f7a6d43fdd663dc3d6d141f
MD5 fb256532ff477cf0f8c6e09566150329
BLAKE2b-256 2fb605aad36600406f5628c5e9fe9fa604eb6c9c86f3a378874625b30fc1eb66

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.86-cp38-cp38-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.86-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.6 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.86-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 84c6a0df6946008a78a5106f15bb7a8f0f10be3927d7988d3a08e3c0e99246ce
MD5 fb97f5e9cfc6d16e8f7b6afd5c6797bb
BLAKE2b-256 55a33411c21227a7c01d0ea362fd246fc138a6546be8e8668572507932cf6cbd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.86-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.86-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 31dfbeae11aed943ae89d46808b989feaf121d920e89033efeb47de6aeadc3e1
MD5 a7ff8539f5ff063a70fbf2915b39d24a
BLAKE2b-256 1a201682c2e6043bbacfa4fe6e80745837ca727eaa3632d58613c66b8dbea234

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.86-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.86-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5cb6503d09c1f1fd4b5580cf948b808c41607b873a941d66e34d7dea9c7912ca
MD5 060008ff1a5154076bd04c9a1a947460
BLAKE2b-256 5745dcca66f8061b90cd9b58d5676038b4866e4285ee690c8c844451ee3f1487

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page