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.411-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.411-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.411-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.3.411-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.411-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.3.411-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.411-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.411-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.411-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.411-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.411-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.411-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.411-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b853b675c9b06ca23a48f257e75a3edce04f1af5e3d1abacfd7f0003a6ed864e
MD5 24cd490aab40d8217e3a44a00091938f
BLAKE2b-256 36536dcd93039ed13799c723197b9059d7f7ccb6ef616682c130910ede456520

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.411-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.411-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b50fee2d605bc09e1d41ed6b74446137914d5445b5db39084fc5094a8b12a605
MD5 95f5526fd66a687a466f6939ad560bf3
BLAKE2b-256 275f9e88c03b4b9e176fd0c5203b58b635e532e957ad01ea7284d6650e3385b4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.411-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.411-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 66ee442507ad1d1d1ff432a8cc9d446bbeba80f2bdecec75eec88e9d51503a3f
MD5 e82f127772e70e427e33e7631d39a484
BLAKE2b-256 d723ebdca1164c97ff7d6762096dc838af200a7df66f8f92c21acab3a7948b5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.411-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4130687eb7ac1a9964dfd1643641c18c46ceffeaed0a3d88cd3d2954873e5334
MD5 84d3c677e4124eb6ecba9ce72e20410d
BLAKE2b-256 ae01f8f726f3addae4b2ec094bd8628c57f0c65a8709bf5751f297fd755aef60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.411-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 89c284d9ffc30dda16b2f9991c580bcfc23558d3d3eb1c8159cf290e1e111ee0
MD5 14571caebc78a068a4b3bfd756c72ef0
BLAKE2b-256 c2b2cebe3d712f9ac017d11fc9a94971280cbe4647cc47db17f3fe7b2ffda0c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.411-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.411-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4922f7d872f5b0442a6aacacda5d9b2f423b18dd88580476bf9c9c8ca3f32135
MD5 19eea6c674ece4589868d1e9c92e5c60
BLAKE2b-256 2685a89de029dc132d78de692337ec23d72a569ac2fac2150e87ee936bde1e0d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.411-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.411-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1bc781fdf3c38f5f23e60d189f88731f4bb0ac7498ab8e21e16126d2f812ac5d
MD5 8b4bc7c1a8ef12e30300b1a2ac83efdb
BLAKE2b-256 76ab6e4c2ca13383b640bd4cd6e6798cad4c80d7986105b6459ef9de236f2ecf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.411-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce30519b3752c67c86b425636e5e06d308fefa931be9a38ecac7cc9b83c2f7dc
MD5 5a77a933931ed8a217442e656f7156eb
BLAKE2b-256 50d30d61b8690b0364e072fbf5bda62c51053447082929dd75b3d03472728c73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.411-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 85365dd30d497f9c1b069086373ba36d348f98a1f7ba0bfd84b13df8d568d545
MD5 9d2829ef9b787503d46f19226d3fd775
BLAKE2b-256 ce1468ad83625bd8086419143732e1313ce8fc8efe78117c4f5b0a92e892b7aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.411-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.411-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0cd78560f4e4c86508cf135abba9454a6d9c9e5631a1111ea4171e132324e4be
MD5 9b1c39f30e1e94ecad0af6ff8ca27b76
BLAKE2b-256 dd98257a4a80facbc8e312f554812ed6b7fb768cd5c16b351401e31e2c91a543

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.411-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.411-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d53d11bc8f58406be553922439c4509f5151292d188ba2f33e33c2006d5021aa
MD5 4927f9d3e843f508fb0d5a974b55b647
BLAKE2b-256 37e7220030a867a983d37a54ef63305177cd98b28f4eb6941756d2536d9597a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.411-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fbb7a3c45ef934287370776121d04db0032825b962f6e648e5f736851243034c
MD5 3e7d17526ec7aa114388d37ee9bb53d1
BLAKE2b-256 dbe9829cf82f2d7baac321945c981c47eef2bda11874d0a536a45a2819d878d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.411-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.411-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 84d9fd084fa26f4a26904f3e1889fbb61afd59919d743cb90d31604ca61d0462
MD5 f676618275c5b53d5fdf93ebb87f577a
BLAKE2b-256 5660661276c3a1d5cd5283589eaa27e7bc9ef926e87d85f9a18e8193e93b101e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.411-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.411-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1d57db11838447f42b07906933397abd2f27a3ebf27e54aeb8003ffc5766e5e5
MD5 da908e72e6fc7de3c88355d2a8cbc4e7
BLAKE2b-256 79b0e167b68ae3f96ca9326f2b70740307e5daae2f9aee65bf3ed21dab81e63b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.411-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.411-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a7f22727db126cda64efbe6e5bd8213c4aa96e61c61d385c896a2b7c5a60b713
MD5 d1ede18f31dde719a4432984b1e9a805
BLAKE2b-256 3c55b17ab773a05281c4445981249c65883c4ecc2d568f424166a5afa6d1e817

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.411-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4728006a77b5c56fb3db7b9c9af03a5f7b9e4f826565dc43f7007f08fcdc2808
MD5 7be85901f6ad3a63b7366b6dab4b16fa
BLAKE2b-256 e3067dcdf63f86a92c205639c0c9f09244bb92084837f3a8e678e0521df4fd23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.411-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.411-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 59a235c392a3462f396ca7b96ca22004617ab165934711c97ecf8a250cae8ae5
MD5 3e6771e5af20328169907b1d8af4b04b
BLAKE2b-256 f1fc9b14f9b88147617290ac659e9e69efd1e88a36dbd012339bf7d0f915e458

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.411-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.411-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 09cf44afba6ce018115654c333c3fcd2f350217a79412f13757fb5ada74feeca
MD5 f0428abe6b8124e72d5e5c115ca86e12
BLAKE2b-256 fce1406cec29dc3dd2319ef49353f5c5479d1a3e7f3bd4ed0086982de9af85c1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.411-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.411-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0b6c25bb643d15f342db6d537878091a23cc646fff95920360bbecb067dbaa97
MD5 fbc14e4674e26377fb878d8c76144705
BLAKE2b-256 76be597c99fd86958197fe63576f746d1202893f3421c5060f1a573edaff326d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.411-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 04fe749b23f548ebd766a593bfd64327778b9e0cba811d860f24a96ce67d7f13
MD5 4c7ad1d8a390a8495cc475775f7fd0b7
BLAKE2b-256 47a74aeceb888c7df13b84b4df64ee71de4caf7b2d32626780ddf96547248e9b

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