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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.607-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.607-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.607-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.607-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b39700bc537770c5442ea964c1d00335c888f8e0494ae662bd811b1ced0e35de
MD5 5379228ee6253a6029fbc736fa3ebe45
BLAKE2b-256 b47040170ba7032c5cb84611a5a20b85e8e28545f9c92b827cbf2549cd008786

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.607-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.607-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d21234dc54b181a0d00f9277c03b4a32645552b2184b393615a5b22926f88b27
MD5 0ad25cf271b13a9e2749aecfc3022a68
BLAKE2b-256 6c07ac274c5343136554d0af26d58beebeecae1ea6ff9f3f324dddf0bad530fa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.607-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.607-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2f2f6743d7b8d37b617a2d308c180e3d91263fcecdf734772a63162ca6d7b2af
MD5 15c4bed82741128aea2fadcd4d402e60
BLAKE2b-256 b306d9d593aed1a3c0a168cf6ecc72fcb27c4d20292621cba90b8ad934981731

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.607-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4740641ec5adcbf893d83a929b2ca3c10920efeef92d6f3f22bb4a07ca181363
MD5 cee0b5ca68c834278c5c2eb6d15635d0
BLAKE2b-256 244fccd518f2df0b42e2f184db36da6a1c676a895abdc8fc487b34abc21bd7fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.607-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dd627ca6264794618e2fec6b29238d0f6ec9aa4ccb3620edb76abf077ed24448
MD5 fcef4aa8825cf124afd47a811003fdb0
BLAKE2b-256 709e7c2861b65de6225de0840f585493e8c4c29ede8ac86e886fba845608dca9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.607-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.607-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ffcb760fb77c4fb917f97b31ce534f1ac8dab69e1908eebf1c1208598d3cea70
MD5 c1a159a2d9a8a81afa7d71e30cd17bbe
BLAKE2b-256 2ef5e17920ec79bb8736c1113eebc66d4204447308a25b6113394f2cdcb0053b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.607-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.607-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0e6fdeec31150827ef4a371d442a2db945b42ebc1eeed0c2653d7c1308e1268f
MD5 628031f1bc8efa33e1aeb56afd17f62d
BLAKE2b-256 885630ef3b654cf82c0eca3784315482a5d922415faebe5296100582a73cd274

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.607-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f9aac56bb3732b19df3522e92c27fd509480d16cedcb7a81f969a99942f82ef8
MD5 8bfb60ad613451d201df3e17b35cfc42
BLAKE2b-256 f9d58899a18a6c2e5203c1583ae51c9c5323c8be1add885907e5bde6df59cbc9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.607-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e43fd0e4b377a657e814ff5be8aeae4afe7ca4ae4735a1dafd715e25fb6a9d18
MD5 f8c5d2c6be6242a8dadb9010260c38d2
BLAKE2b-256 ae8e34c10043fb747c594af18fb8e79f3f5806f666fb8a8e3d24451d22a665af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.607-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.607-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1eef72624ee783b70c4fa3cc5408dfe6e66302a9909d57284de48807dfcdb8b9
MD5 e413eaa67af8fb94bdd6691b4de4d310
BLAKE2b-256 0dcf6825590d59fa0841e01fbf61c48b731b2180f4ce2cc6d0b4dcdbc75a9d7b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.607-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.607-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 494188e394df31b944a68f44c4d3aaffe76038ac09f4bfe87b9980c8cbc64103
MD5 84421e5f360f6351bd9ad50d7b9f6295
BLAKE2b-256 48ec89c7aae1cd2aaaec8eb0ee4967f5acc9c6e1285121158ffa66ed41007415

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.607-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7b70433759b6258d3b3104b64047f3a1fd57baf5099d6d3c57fb09f44b43bb5f
MD5 9c78b32082b85b485607a55b226a928c
BLAKE2b-256 67c118f0c9405b4173144e979ed8a1603ee13bd5fdd12243dcca717c264dfa4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.607-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.607-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 86f726173940d0cdd824b06d7cd309de3132de0bc0f6b17b9710205a87739fca
MD5 cc85540be14123749d1ed699357e4275
BLAKE2b-256 be22501860157c37d40ecf54aa73137b3a0c2319934434ef9ea9faf85bb54fbb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.607-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.607-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 31a401a209286a35d9621cd58180fdcfa88984e5f1a817d92c778f8feea66a85
MD5 a2bec61077febfc102c766c9c32017bf
BLAKE2b-256 41533773e298cfc5661f681bc4d1b14036ed9e468218c7b50e3a9f87d2ad9b87

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.607-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.607-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d7bb499d4dd93e019d52fda528b20741512ae2c600bbf991382998d219b19a30
MD5 61b606a19df7253e01833540817bf816
BLAKE2b-256 80a3b2939def15f6f2862acfb69ddad147ced1e54ece97a98ba867f4d007986d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.607-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65fc58b9f3f671771ea7baa157652ce0fbe147196953dbd1e437bd0e873355cf
MD5 7706a15c05c97fa2daa9e433e02bd764
BLAKE2b-256 9a380943f6c4aa55d674cc183d4156f6fa2bc720ae5362de7bd596b8077574a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.607-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.607-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 238ba596de12a57f047ec985a4a41c800ee5c0c673b9d47035e592464e3fc7cd
MD5 746cd237f1a39f9290b2672ad887ebaf
BLAKE2b-256 403142eae0263bd272c6fd484b62229d6bcc682dc4b88af5b1571b2b64badab2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.607-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.607-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 95585a6e51f5368e37aeca6cdad831cf86c26332919b995b39d6aeb7936e8234
MD5 61a684455a30ef705989c8984f1d875e
BLAKE2b-256 5b9e6e28d61b2e98ef1c48bc9574a5083501b68a75909979e6e30617d186ddc9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.607-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.607-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0461fb739900ca92a1f9a6c91e102d8dad524d665708b5967b920e87398d6a32
MD5 edb1c07c8e59b11b8d13cc9437c404f7
BLAKE2b-256 5687e45b01ce772560c691513d39a45376e882b272f5ca0d3c2a91efc92943c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.607-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d4c7ac143a4f85447024213a42cf9825c03864966c51aad539d86322d831bbba
MD5 9938967324c6835bc10c6d082e0b1885
BLAKE2b-256 af78fc5844c92b1bb0f085299522fca208b7af4ab5250e3313f3b390871ac494

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