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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.382-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.382-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.382-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.382-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8abd37645975854b3e0d8c76ccad1eb400010cbf8f9917d2ce6588933fb2e182
MD5 52d88b5676dd9aa7e02a8ff17c129e2c
BLAKE2b-256 28ac36b7a5b9af819223004fcffa238076bc340050dbae7f92d8d1d7ef7bb1e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.382-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.382-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 daa58ccb38bb424d8978d6e0d067b5fdff35174b66b34ed0956f3b3fed5ef870
MD5 7df645b70aa2699e61d92e8877a4415c
BLAKE2b-256 048242a57ff8fab7681dbd42c846561a6992e31cd291f7087858ec2cda6d5d19

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.382-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.382-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e9ef1194d84b6d2c2fdaee309b0e714a31a51db28f384761028dbc4e478258e5
MD5 9230e039ea4b1ee50eda1be9cc116312
BLAKE2b-256 98d5bf7be0c95f681f6ece904f0ecfcc3e85b569439142db51e7a408d0981415

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.382-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca7807f54aa2ca1c7c0a9d1c6a0f41f39c0f3e683794a3c2128c78b006ad4202
MD5 ad86493ee20ffdaaf18932fe7170db1c
BLAKE2b-256 854eb300cbede004216a406e5cbf614874ce274c41a6ab45515f26e6c6519418

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.382-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f89f4fedf879270f06a5fd9c2774dca6f178678dde02adf58616f3efc695957d
MD5 49f66b5d6538fade4968f2ea105a8653
BLAKE2b-256 72217eab938ba6dd93841da4e4f810e45085f40e5c45997c23bd64edbc649b31

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.382-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.382-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ae496e0c6257ebfb4dff457909cb3130e6762cc5b0c53570109397ba5f3572b5
MD5 9704cbeaba1dce8e78aad77f91eb86a5
BLAKE2b-256 4585ba7756e1b45b5af472d1f8e81a0a8c2371cddbe47a7176cee3e191a2d1ad

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.382-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.382-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8f6e17507c22516246bc7a577aca7219d78e2996ab7dc19c52058111ceea5966
MD5 9a41e2017c63bed82c8bacd855749c92
BLAKE2b-256 2389be417fc7984b448d26945a311d16d318fc0de39500e5eb54a7cdf6911780

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.382-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2beb465b6593f688fa482b7de637ef9d77abec04aeed4e3305db0cae57828bcf
MD5 00c9f26ff3b8be237f69b1a3a94ec55a
BLAKE2b-256 ce972b1781182993c8ae23ce7f6293c7ee49a5bb96dcae66ec248ed3ec83a83d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.382-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ad6565c2c709b70f3dbe275e70bd26a66488922e3c2a31261a06988ec8270dac
MD5 f404fb861c873cae8016efe6e66768fa
BLAKE2b-256 4289ffbb7d1841790b6fda60a6d4a1d077047ea99e80697776c979f012e43dd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.382-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.382-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 989ad2d763f7588eaaf38b44a3194c3462de229260e5a61f44062080de5f8fd0
MD5 3e68766dd5cfcf6730a04e5d1daf61a2
BLAKE2b-256 6b1f814e7f6484601dd06d3723f3d7cf89119e7f0d03f5a2c995de8e5b0a9ee9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.382-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.382-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1fc76f2ea8fcc139c18141a3d3f801306589b290f587a77ff07fce2a79732a94
MD5 dcdf3abc4fbb5edf0c07e7894887fc6e
BLAKE2b-256 08a23ad7f4e29abd4bda165761f2fa707f516d8ed546c7ddbbf6588f44d71a5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.382-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2085ae6313ae120ac07f397807ffda4a9d0836d5b949e62f1a5e3eff794c34d7
MD5 e813aa5c8ca80322af02613cc9ccd810
BLAKE2b-256 ee37a1b41ee5d2a77120621fa837831ebe68bde9b9520ac4362b5f0951517a93

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.382-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.382-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 45f778003c94bb17939b22972a0e1aa66b88e33ed76b7e266dad1fd5e70a632f
MD5 0e11c00984f4cbc394afe23f07cb0dcb
BLAKE2b-256 850462dc3fd542464334b7869e09e5dc9ec50ddfac603c625da936af6620d442

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.382-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.382-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3658a8274714b3874ae3d0765309254db8e57746aa5aeb1dd2f4fcfaac93f040
MD5 609aefb84807a61c431cd7cd867fb8a9
BLAKE2b-256 34ce7bce06edb67803401ffe99d2083fd4389764cdd5e06d9cbbd444720081e3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.382-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.382-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 354b6886bceb0fe25acefd86f5ab179a45dd48c8bf95d12903d5dd53cda967ee
MD5 2d8b6faf90dca50882cf42ac4f432740
BLAKE2b-256 3a669449470d0c1ce7603ae08e646a901cd24111087ded1bb705acef2a1181e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.382-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c93b07a9041cfdbc02aac4dc7c56c434b89ecd16ab5ead6b113afe46aa55b93c
MD5 a16e8f13f4c2ebf09291097de5cac81b
BLAKE2b-256 bcfc42dc20c6ddacec7d87fa6859e5b9ec3526ca236bba0f7f9e97689a086f06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.382-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.382-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 65d29997102b007059aaed866da769f9e6c5ab34a88375691516eb976e5fe9fb
MD5 6c853469c27f77b1d8eb7e2424a76c73
BLAKE2b-256 0ad70a5fcdc03bcd4f37ee1658ff5e0e2ead7543d371dbac2f050dd740711fe7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.382-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.382-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 84b156f0f2591c6bcf5236ac26aeef8ef73bea3a090478dc0fbaf37b00a15b3e
MD5 05234dfa02b500bb6486b3bdcde727be
BLAKE2b-256 22f66dd89109a4047bd92b2eb3ef13ddb3628879060a9573825ea0c4d4d4b3e3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.382-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.382-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cf90d978a8da294cd170f74c6dfe280592515e598917c9bce6ee92289e04e200
MD5 3658565feb52d82061b54dc0cffe5034
BLAKE2b-256 bf9c7614e63e0031e3627d2be3cc6eba85d3bba78a997a6f48f99b77f1d2ea8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.382-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4f1a4480680d40dfa721b68ad1fe8835e5f5ff5592209d4a763eaadb3d540c6d
MD5 a73d1110859fcf58b1f9fb57365d452b
BLAKE2b-256 e7ef4169883e5707fdf1350d9bb76224e8092913122847fef1319b2a00852f10

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