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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.321-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.321-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.321-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.321-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 566964cc1bdb401c6c8ef1a8b9bde30aba78b82d768336ea39c47b53a96012ab
MD5 1f1a0ea4460b743fb5ea382724f95e8d
BLAKE2b-256 ea9d5408bbcb2fece0c378055d9d2d946f41c8cb7828dcc273670c988e7268dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.321-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.321-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1bc99e0451d10525b4a305c048bd8705679063774a7e691c79269b7143f0b26a
MD5 f10f6d625880ce0029a57f217d98dcb6
BLAKE2b-256 0da04a5cb40292d82d41a392f0bf4a32611a6fbcfcb5bd57df99763ad9568928

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.321-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.321-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fb1110609cd82ca65e6ab68284aeefab18813f205185f7c091e4b6fbfbfd32d0
MD5 2abf2452f92e43ffdd38d032c85965f5
BLAKE2b-256 4fd407092a1fc1ebf962b27730242ea4e284f79e59a45deefb84ef1dd1fa9d21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.321-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac14e0aaf2574c2b3ac29814fc9e9cbce57f90380effb772b78d0e5825f60bf6
MD5 eefacabeb2389f2bd50302a91816710f
BLAKE2b-256 51f33d41ed3c969c91c49b6b06366939eaee4653a634bcb483772339edf5eeb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.321-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5b6f1c30780b4d8439a144406c5f6cef2a3d4c2e01bcb58275c109aa12cb2df5
MD5 768edfa0da014f26320a833c766a3665
BLAKE2b-256 440b33927ecaaa276851aa366ee80079a84d5477dfb41d8f13fb6a72d8781625

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.321-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.321-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 fc5294fede905cd4d1ae21fe37d86007bfc1a87c5660ff93d45b555f5041adbd
MD5 55309746a6e413e6d27b52ee339d459e
BLAKE2b-256 69ed3b4c0e745b4ce2ff79cb931b6b4895d9d2f3634ec01dcac6bf76e0635914

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.321-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.321-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 be833cf9eb48853f71fe89eb932da61c6685b9ec2c1efde418811abb3bd1ccef
MD5 7580f9bcfb40f261d22bf0aba96d621c
BLAKE2b-256 41fca4e68ca329a1fa67ebd2159c4683b1b197f84b11812d2fbab0a70ea842d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.321-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f982ccda6b4cec0f6b052ce7bb28cdc686061e0fcbc8973850b50508e1c4359
MD5 ad3bbb65aad5951475cd4a430f1c6346
BLAKE2b-256 2f0b002c75d410d3ea05b93ce6c57491c29eec27bf23b279f39e22724ad6375d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.321-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a47d9d5166836b6c73ee10b99154712fc9304d58905028c1239c1e2d303a196d
MD5 0c7d52b933f301187879dcd8adc9468e
BLAKE2b-256 8a17383422a57c337e4140eecb8290f00ecbc773e9a391f861baa2ba2f7f1b32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.321-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.321-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 13ed2d52337523804fb8e89dfd636b3acd9274177bcec475db29797feb8af3a4
MD5 14f7e90822184a5efc79029cdf47dd6f
BLAKE2b-256 22a10a5fa1be57979d427c684efb9983b28c203eb30c9a90a83b2b200839db0f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.321-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.321-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a07d3927d54591331f38d5293d14962c751470f8c386c9b1de69b413ae93997a
MD5 5d591f741e4599fd4a9419535f12c9df
BLAKE2b-256 bd7d02a9962536589c476487ecfc07be8c0d72209f2bfd6c1b26e3d8874e0bf7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.321-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ebfc04d40abe2a2546d705948bb81834d92336282fa30f2f356fecaf254652a4
MD5 2263cd646d2f87342e79572fca62182e
BLAKE2b-256 32a65a561ad972fda1a53507b91b781409a94b5500b68aeb0e9145bb2e842261

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.321-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.321-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5e6eac2a2288211a9985cb47437b55bb685044d96c4a14e438e107a0f83c0d99
MD5 b141c1e24bd6b662faad6746e04dd00d
BLAKE2b-256 56d561ddefa4e8be382c919011f66e8a3bca9cb79b3c947cb1dc2582f2e6d73a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.321-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.321-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a6a0a3dbc61bed80d696cfaf0202ba36422d359f3e45fba5cd0c65590170808c
MD5 8ce1e0c56afd746f44f230fc6774d04f
BLAKE2b-256 11f537a310e363b629384d93498dca1488a013cb343ce76b54722f4c6dc27f5c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.321-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.321-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5b66a85e22955b5f741df39b2d26a022fcbdaa4b60e3d065251ee5af67637bf7
MD5 9c02692fe9882eeefe349d5e24245cf2
BLAKE2b-256 a7f3baea1a9efd73431a22cf85ab6766ede8d645047b86f7c2c30c439cec91ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.321-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6679eaa5f3e371518a9290434d815ebf3cc0cf8dcfde18800807c94279aa8ea6
MD5 ea9d16ced776bb3dff2a5793e20eca92
BLAKE2b-256 a67da2951b212cebae7cdc6c8799c117f202ca11cd7d1031bb85dea149dce164

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.321-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.321-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6c2630cb433e8fbd3a7d408e8fd1d3813dfcdc6e70420306c9ba4a968f3faf1e
MD5 095fa5ff522eb971cd7672993625f44d
BLAKE2b-256 28bac11209fe29d03ed9cb1b50fbec342edc22c796473971687432cd7a96ad7b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.321-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.321-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 62f6ffabaf1c3720a013258470d2c13c3444e312030649526883cad4072a1adf
MD5 26802755e4c98ac01bbd250f29a58ae6
BLAKE2b-256 ed0752ab5dd0db1dd0e27f0ce835994dad8c7c178e276dd595477bac5f286dd6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.321-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.321-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8ec23c4a684b87e6add871676791ab100b300e6b16d973fdeb5c7f67fc9a7229
MD5 7b882b58ad2220164cd7f3e355149606
BLAKE2b-256 6a7ac62e638556533a4af5f33ae519a1421696feb827963b36f7487dabefe239

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.321-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed8000a5c2c57ae92ba940444bb5f293f7124fe09362311e13997397cec74a0f
MD5 42d64e1207b89372623152e96031a3ec
BLAKE2b-256 6006e39e67c5990e48ecdbd8ce530c30f37565e5acebd20b773315dc4a71d17a

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