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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.53-cp312-cp312-win32.whl (110.0 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.53-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (313.1 kB view details)

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

simple_equ-1.2.53-cp312-cp312-macosx_11_0_arm64.whl (114.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.53-cp311-cp311-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.53-cp311-cp311-win32.whl (110.7 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.53-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.7 kB view details)

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

simple_equ-1.2.53-cp311-cp311-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.53-cp310-cp310-win_amd64.whl (112.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.53-cp310-cp310-win32.whl (111.0 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.53-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.2 kB view details)

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

simple_equ-1.2.53-cp310-cp310-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.53-cp39-cp39-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.53-cp39-cp39-win32.whl (111.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.53-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (268.2 kB view details)

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

simple_equ-1.2.53-cp39-cp39-macosx_11_0_arm64.whl (114.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.53-cp38-cp38-win_amd64.whl (113.3 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.53-cp38-cp38-win32.whl (111.5 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.53-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.4 kB view details)

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

simple_equ-1.2.53-cp38-cp38-macosx_11_0_arm64.whl (114.9 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.2.53-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.6 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.2.53-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 12a9d14858393efe8f6ce58fd0ef123ed1ef1964e134ff8e8c3bb20204d4a74b
MD5 c317682d1670bb424ba9335767f6b555
BLAKE2b-256 377eea542abf8755bbb94e03e0bb6736e4c0132ba6f5cd89d72a59babdbd3165

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.53-cp312-cp312-win32.whl
  • Upload date:
  • Size: 110.0 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.2.53-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 046485f96e445a96bfb0a435840b8db945adce78ee47430c012f9cd6d4042595
MD5 3e45ad2e4c53554e61f13b3759964742
BLAKE2b-256 eae1ba525d2b8ba0f550154f029d3adf22b90fa440124e9c35ecf6f5291bb8e2

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.53-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.2.53-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 118461c922af63a2dae3ddc1d29e0c9d7f6d1797c9e8fbbdb7e6275ce86d1586
MD5 50090748bac8947e26eaeb5f002cde2d
BLAKE2b-256 4c464510aec3873bc4a85e775fa65b4020c6e80d4e3afa260a09d037722f374c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.53-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 653ab4d20edfb25d8088fe9c0132dd273bd329074a7859f2526113cf2c291dac
MD5 1152291f34c8b9c65b1146446831e526
BLAKE2b-256 1064ffb7a3b54bad920ea55eb1742d951e298055ca24d52d2a26d549e8cab62d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.53-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.8 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.2.53-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1ca78241350c2f886a99d2d847ac8270f6080964046a5087bb4c387a2ef1ac55
MD5 3e41711cd77bed5bceab14a19db2a9b5
BLAKE2b-256 3528cef6e662c9420d4373abe1eafa5fec193d7f157f1d0d79e264a2148df4e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.53-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.7 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.2.53-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 77e9f6f006b1df661dfd416e32ac870a9f6bb5471185a06e6bc3aa791f0e54ff
MD5 10db719ddadab18b39357427eff8aacc
BLAKE2b-256 49cd543e79a047d03c335926fc7488159ee833813bcac0d019f0c5db15446f0b

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.53-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.2.53-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6cb5470ce715edecae9c29015ecf46ac0052d590e0f1820f6507a7fb2b49e7f9
MD5 8b2e7faefd761d3d64397fdf7a292bfe
BLAKE2b-256 698bbf89dd027ec510258c584288eb3fa0bc2263a79638cc82a0b3c1bc39c671

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.53-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ef7881eb49af7d33b930b4217ea65f747f9ba74ebdcb5c1d469c063d44f316bb
MD5 0d4681b00cb6d07ffd6b0f9407468288
BLAKE2b-256 1bc93d2937b5bfea8ceaca6e0183e12c3754196e80fc267e6b0972a162c0e970

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.53-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.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.2.53-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 091bcb72a6b6328a72a1f8f59246ef21828dab19bda3b193fcd3aa6d8b184e3f
MD5 eda504681ad2b6bb85a850c09fa63966
BLAKE2b-256 13ffc1773d6957f439d67622b90f3b776da0dd69e0d81531ad1c18615d70aaba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.53-cp310-cp310-win32.whl
  • Upload date:
  • Size: 111.0 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.2.53-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8c39d66441dcb1e2ab63ee8cdf538c741a2c1e960fcc91a32ddc84ca0213206b
MD5 da9836197f9bdeb55631a3e0a60cbeb0
BLAKE2b-256 612cff47b9140c17b1db613e5b98408f2b4a20fe32b58cb8eff8b7abff4956b4

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.53-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.2.53-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 78a3d77a5e00c664c99361c21290ebba95c5de022e755b109f345fba1f197b70
MD5 58739fdee27c8e8d590daf4813276819
BLAKE2b-256 00a51755a27923b820f0f73243d22ea58b3a6cab3468f310fbd6a36b61882914

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.53-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a0f4f13f854f43ab2f56c5200f83ec93dccb7fc127923b6bd4c428445dd5f0c0
MD5 b9964e998cf8a96858d951147430e639
BLAKE2b-256 c790bf56b1de23d745b7f9b8c24125585514b15fac8bba0234f924273eda2000

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.53-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.8 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.2.53-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 41e4ed6810f58a329a4f99cdcee2be5d1b05191e7db74a1898d437bcd8ffc843
MD5 9a9151111c99c6b204fee660404a547e
BLAKE2b-256 945c60c1706b16caf27fb553577b37e6709f09367c2f59a746599c7efe9de367

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.53-cp39-cp39-win32.whl
  • Upload date:
  • Size: 111.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.2.53-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 467313b5a7465e14d2570f6f5272c3fe1f0bbddf85cc76abf9700ff5a72f8230
MD5 043ae6fe5fd459b1b0fa1698d263e58f
BLAKE2b-256 3d8efa0d14648948a7479367966d2363b61022d0a02a8e36ec2af97432462b17

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.53-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.2.53-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5698b12a83f4c780c2906bb3af90a750a3fb0efd73a89b656e752ba15f1834c6
MD5 5728d32571295cd7e956cf1086d9d061
BLAKE2b-256 3e939176ba3771a694fa5752f6a137f09a7912d3b5f4db03865332ce4dec5f06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.53-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 608076f4ec798cb52870ca4e2cc59f38a64ee05b335797cc159172e884e4b5a3
MD5 f4b8df2f712370781d55f02a4037efd4
BLAKE2b-256 98fe2e4c48eda335412ada6867a6a1f6e8376b2caeb1f2eadc524a48a1a23dee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.53-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.3 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.2.53-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 50a204ee26d1711fb6e1ba908245663546083bf5410b8709e22cb33251083dc6
MD5 a4d3a0186954101eabf713688c29a9fd
BLAKE2b-256 16b2c6967010cecded5bd581cbc09a1fc068395039be10b01ba51e60015ee5d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.53-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.5 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.2.53-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1cfd7d560b84efbdd1c56af4dedc10baf40a1853b2ce88b65615b2c144891ff1
MD5 0eb175b65c1dc48b57c63eea625ad1c6
BLAKE2b-256 6f8f12d16acf398bfef2c38bb4899053797161d57a0ed6d3b2e39c2d0ecc1d13

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.53-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.2.53-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 356c70aabcab49d0756eaf04945d32d69f6a60d9aba29754832fd1c45dacede9
MD5 6cf2b41e01f32fcffe60361efd81838b
BLAKE2b-256 f8d66b54c510db4751267f166006d420ebc288bd3494bb420943a27d9e061178

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.53-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dd4ede6c80dfb3f71ad3efc33416e9d45a7e456db73b970f41a3c49e3bad4478
MD5 77b47bd64147c97c0f826ccea099f9ce
BLAKE2b-256 d9cd62cb106c9d5cacaa83659221fdc1a33eba6b325d0ef0d6e2b2dc62a52585

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