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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.1-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.2 kB view details)

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

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

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.1-cp311-cp311-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.1-cp310-cp310-win_amd64.whl (117.5 kB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.1-cp39-cp39-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.1-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.1-cp39-cp39-macosx_11_0_arm64.whl (119.7 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.1-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.1-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.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.2 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.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 773ce6fec489ef5554902f51014d9990fd05735c076a472e84e766bd65d6b062
MD5 48b25fbba137768894db0e128f776e53
BLAKE2b-256 38eb6dc7bbd97f1bcbe5d56f86fb7304cc476e1083b04e489483d1ffda854bd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.1-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.1-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 edf9438fa3905e7243e40a9693cd1b4498125a14813bdc3ffb92fd974ceac5b2
MD5 267dd246fc6da4e8e03bf246e24b4650
BLAKE2b-256 b2b770f5215cfa680e2a52b343340bddea13b3d0c1b74f899b736f1fe93a2197

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.1-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.1-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b31c80df2d7a8265df9befa48e7f8f70fe6833872e2d3c71cbb5f056289b0664
MD5 52af373323c71a6528857df43af5169d
BLAKE2b-256 09e4d8b97d23674cbf3a45af6e3dbba55922db92d8a665cb6035849e2111c575

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 886e14d95523b16982c0b3a2089235163bf09eaf76321ade5d0b76fe13c894e0
MD5 2ddf384a0793260b9570a4d41b512e0d
BLAKE2b-256 4693a7d8b8f6f70f209be6bba213fe00a745c52981466990663d446a4340ed60

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fd637d5a35e541e90070a67169b86265129365408c29c0c6eed6949935024674
MD5 0f8ecc3c626c213f4c48c477f081de42
BLAKE2b-256 e136ad3133a474a57b55eec7a3103220f6a1fa827f56ac64d1b5897cc87bd482

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.1-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.1-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6d517e00ce0682ef33569c697b9f29ebe967c3d2592d936285a07698a759630a
MD5 8b7d897755b6b863e694d883882f85b9
BLAKE2b-256 7eb5710f7b6842a90ae28b448a20223ddfe7fac66f1444f14530bf4ad1179de1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.1-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.1-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8cb81350374912f897b41b83e977918b7f2efba970760cfa2906a2e899622c99
MD5 6d2e1a01262a14b5f898311051f0d03f
BLAKE2b-256 04c7f648eb4f4bee1ecab22bd95d58471b67d12352a99b8fddfcf955139fbb02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 490a133f1aa218ef5a03485ace332f1ca029bc0f9c3645f243ed3a4693c8a56b
MD5 30263cfd3d4e7a9876bb07a1cf4b3268
BLAKE2b-256 d99c914caef97652cfb8367db50a8450e3bf07236bdfc784e919585fc9f14ede

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.5 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.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fe68cae11d292a181fd66ebcb949275d228122390456127c6c18ec51a7ece3d4
MD5 6f7676a59ce9eff957d12a8cb6bc57ce
BLAKE2b-256 46a8b2398aaae4a6166812a30196a5e9ab2b6165aaff712f72ce0dc5711e3357

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.1-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.1-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1158775ae44518c6194eccd8dfc639fad36c4a12fc8ea92fee42850ab0e31908
MD5 95957b66c513ffe173cef4451b59f853
BLAKE2b-256 48a74f5c80514e399b5082b1a3762488b77694482769a216f66d263d9ad9443d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.1-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.1-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2353ce42644413cbb5f7bb87dec14945470c945878a19b1a60ee6b93c84a8c3d
MD5 5d10b7a281d4869ae1d1a261478288b2
BLAKE2b-256 25f5ba39eaa686360a4cfc8e529fbc7a6d9deb065694ae1717c52e496572834c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8ead32f7b1ca63cf0d436495b33136c1e5b0299e6d836465d1aad11a84c60ac9
MD5 20662565f96c513c11e980c0dbff1ebd
BLAKE2b-256 fa6e3a40103034cf74ff5efc585dab5652b45a50dc9eb9ef1599ad846270e034

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1f8522f222a88a496ea608f103a356bf642ab313a1b85661090f262301ecb01f
MD5 fbbc4c951e375e565200d8fca1fe3fc5
BLAKE2b-256 fb16afaa7c4e0a53d06c1969f51f382ba9f628567839c673d236fe6e6f8cace3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.1-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.1-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a4b9a715be9b2abbf5d5aa8f08473dfec6d726e9c85a6ec2f538b6c77cb2c018
MD5 c639a1b22590d761a5a80c621819818a
BLAKE2b-256 bce991bf4213044cc34ec0e2d52aa24387b4c2699f1c67543d8b9c970e854a08

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.1-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.1-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 50124ed4f85873e3db6e71cc7bcfbd7778f83babb4d33c93c0a4f001a3376354
MD5 ba30956564e45cb633fa4bab026f6ddf
BLAKE2b-256 fe97ae00cac9cea1fdabcea823e906b105cc0a78d66568e9c776625e3cb4508d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3681512dc53efe0b227d52a31840c300b8b1f6f224551d6e4f15268cac9d2da5
MD5 3b6e2fb94eb46e892af21085a66d7ad3
BLAKE2b-256 9c9683335b1586f23357c2e0e0b1beb6e6d754844d1a3211b0ab5c4d3b59ae86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.1-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.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 25de9e13b1bf63c7c0552a55a421651916a8bec0e3e381f9cbeca838ae306010
MD5 8de54600b87c8ef2b3e772d0ac4e78f9
BLAKE2b-256 f2a9bb904c6d785543ace314895c6ba7f7a749d1cd4348f5611d1d69a10e04e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.1-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.1-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5050b07275a7c166b9a6d420b00a1c4d89f04af1d4334e9b9f8f20fddfac299b
MD5 9242c0ecc45decf20f8c2bee1d20fa74
BLAKE2b-256 d263d9cecfbf76c5bf7ebbe7cf5f861dd5ad6d3d4f5da0388a500f342fc95d3d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.1-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.1-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 71ccab27fbd900224cda16e11ce3c30c4cf72d2e5ca3eb87dc8701e9b277b4e9
MD5 8ad803772449b76673cff3d7caf4a87d
BLAKE2b-256 c81f6edaa5bd6b956d69b890f32ef325be5d385789b609522afc67292f889271

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 430fad66655af9aa12a539711be3d25d56bdb10eee68dca852b087f4e0690ab3
MD5 a1c74d23cdb808745f7393591a9fcfda
BLAKE2b-256 cbf73dad88b6e3be3b2c7fcfba81f6f5ea8fecea6367fe15885757017255a71a

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