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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.522-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.522-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.522-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.522-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c40d388b0e626ff19b384b290a87c5e8f3844a8e20c2d22ba1ca84d6dfcb4d6d
MD5 9d79b70f282958b715de53188030389d
BLAKE2b-256 5e32ceb6d2556b96c8c729565336b10937bc02c2913c761e7a82b897b6b492b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.522-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.522-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1d970b1be29040b2629baac3c302c092e013a3585a7ba68a7d22bb3059ef07f4
MD5 98417d204dc0ed11a4bf2ceb78d16aa2
BLAKE2b-256 4541a8f97f642e85fb1dd33463fabd5658db4789e417d047541521208e2d5774

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.522-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.522-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a6ec179cb4ba27cd6c91482253d8ef319f0625083f3a855852ac3ada046aaf8b
MD5 adb4a985d5ce2d3f7e01f7fe9befe0d7
BLAKE2b-256 2215103806ee8f0b89261977275a9b8c8f1275db511578c98c286e7fd4af6d1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.522-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d64e16e09a60fe4af1f63cdc1093df73044b52cf34983d4116ac4f5f760e66a9
MD5 688bdc7331c22ec49fe44236c595d484
BLAKE2b-256 3ef74a1a73b1322333e1cd7a819670d461639ffb85af2a57c74271a01a8b25b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.522-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cc0d2bc130d2b45db3e2ae82ebdffe4b38e3bd712c80769c4373721715f82336
MD5 a5dd0f628ef1db3c9ce21726e812403d
BLAKE2b-256 f7621b2c489b47e1c7f55243c0b720ed0f2c5947dd95e445602641c1575daf84

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.522-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.522-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9f099bba12a773b25c23feab2a32cbe0d9994d70131c0a353dd5ec7d01fbbf97
MD5 525d1c789eb7b21aedffbdaa08c5fe2a
BLAKE2b-256 53d07ac914e0e180105db7ee51d39dcc25cd555ca5aca7644acb6cb0f4e94a05

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.522-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.522-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e86c631e12939419194e5659484556e10a234485df8e46bd6b427422f61b711c
MD5 0ac9046693572d2ff2b003464f787d62
BLAKE2b-256 4f7b6a7dbcf420a082d0d4132a39ece6c195e0b19aae32f7884ebe1ddc317112

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.522-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9222799cc657ab5d2967ac9e51d0a8259824ca0f832d93fe4769c3bb401262fb
MD5 3a20817a42c30e7c11932c2b87ea8a5e
BLAKE2b-256 3e948fa1d1919f327d46e393dc5584199966f9f4ab7f4cef1e8f2405891fb103

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.522-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 096984a6398fc7ba090665e59874f305dfe79c6cea5d5918dda1400979299ecf
MD5 d65fb3293b90dd761ad7b80bb072c473
BLAKE2b-256 913e580c35c1d53f103192f9280fa71d4607349b20963e1287b323eaed82e2a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.522-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.522-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f31c9d58ca6e97e0f3fb254b4ed033fbc09332322dbc0e2037488c01a3602a1b
MD5 75e312c4b17e535a49a000d509cc6fc1
BLAKE2b-256 62d624de65e9a79a0b35c3f96b253986c2b1fb06ad6f6e33503fa16eebcfcc79

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.522-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.522-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0ac9037837a7cf2d13c0dd093a291ca02573a5e2e8f149eeebd38d159ebc75a4
MD5 f7040911ebd8525e47d3ff9ea2658a03
BLAKE2b-256 fca3031709c6702fd300bcb23c83b47ca6ae74e281ef329bba3fb0c035307a0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.522-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a2ec7e296519f0285eda30c423d814a80191c901572019344e9fbe2e6a0f2fe7
MD5 fdc3a3d9daa028cbb81b067261c4f987
BLAKE2b-256 83277517e88953c1e7886046dac86be4168440cfcc317969d852fafb573c7381

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.522-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.522-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fc69453d7d755e00570e3e0a8295562f34bd0da9a702d1f1b7d6743621861e88
MD5 5bcb98473e5584801f3eec99001e526b
BLAKE2b-256 cbf30b40719282d09763dd78d20eae4ea22b8626f75e34d8da754ae9055a49ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.522-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.522-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8d42130d2452840a810d9d5b094ef068e6a2cd87c4e63cbdfa892e6462ab0329
MD5 f1418d1fc99f431bb4a6aa9b43dca2ec
BLAKE2b-256 a5f648327aa951fa2434f2b90712fa3b88a68827f863f154792b155d0599f4e4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.522-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.522-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9007203310cd480e524efe1e07dae8bb8ff1d423bd44a9468512aecd18f847c3
MD5 a5e28e9cf6125cb0a8d7ecf67247f0c8
BLAKE2b-256 9ca765b3a46bc92af5b2f46c895fb2646692cc56ea556583bb0760ef3a193975

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.522-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a82217f4fad4642256799fcc318ed1df1512eeb962c36a552249ee27ca53d20a
MD5 d4651bcb7e991c59dd8c6d317b52c10d
BLAKE2b-256 e270bba22438d9aed1e0cbdbeffd54b0b96704024a21623c787685e90263fe81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.522-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.522-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 31b0a66db0a735c9c85d52d9ed167b1e7cfe314a2761a0526e869ea81ec1d790
MD5 eb6169696ada272b685a34caf2262fd7
BLAKE2b-256 9aeddf62b98779da31caa08c4952e4e2e5c5fe3d6a17977c2355c764d5f0745d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.522-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.522-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fc1e36525740aa6496aa88e41bc0a29b6eea913a1fc08ad56aaff2ae52a93897
MD5 20961769c5b1a083a8f7e82feef10875
BLAKE2b-256 033cbf95e240dbce014d11b11281f557817e74ca5415a844ca58bd0fdfe58879

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.522-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.522-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4b6d2cf5b0994c2173f5fd2b53beaec531f4a821f08ce4c57ecb88db57e1c49c
MD5 6c7f8b8304a1ec095efa9c82b0c9846e
BLAKE2b-256 a2af4e8b6a508dd3dc8abb41eeffc8c10e8a5f6b01d0371ad832043254248331

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.522-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e041a3199f4deff41ea6a3efeec83dedff2b839061b7c0ce5476ca3aa66e062e
MD5 5c3a8948707712604b5fe30c8be1128c
BLAKE2b-256 de6a2ab1bf81760d5740c52840b9308e9f2e297bc022a57a5df635eecc03ebf4

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