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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.603-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.603-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.603-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.603-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c36828e082006ad7a953fd66958cbc3824903cacb6fa4c3a8d7c09a00bc5b912
MD5 bb9b2b77c86ddb4872eb75b45846e51d
BLAKE2b-256 5cc81fe7ca429e8b9a0d966f8f0f5d8737bbefd163434c84da186156f76ee9b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.603-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.603-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8a08efba3ce4c25b4338849e33fa08408d38fe08cd164de5b051d22c0540aa34
MD5 652555d14e595cfc68e5933357d44690
BLAKE2b-256 090ed8ddb23854a18363ba672ca0e63041239c472048baa53dba246038f972ac

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.603-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.603-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5a3f4a23b5460e02365559c734547d7caa299e39e742ea8184a9d5d7b0d876b5
MD5 6dc4dec975ffba86080a037c90bc14a5
BLAKE2b-256 b7676bddd9f6b1653910be7c5ad55ce472e9aa87e5f6b91af51ac0fa04f1e217

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.603-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee348440f056327b5be8a63174c7e4dab689da84931df9bbdeb1018f96406759
MD5 35b3bae986112599beee954db46517b0
BLAKE2b-256 6a31920e3c1e7b2764a846a4be0fae1f07fb6ca9dca567261162f1c26ca1ae05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.603-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6bd47d1467e251297b5b822e5a5c170a3ec1cd1e73a0c46f027ac9a640185400
MD5 c85675f6c7f9a57a3fa34ee882c8c28d
BLAKE2b-256 efbe1e2cd54fe1480de58099a65105e1c7ea4681b691b8307eb5f24e2c164860

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.603-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.603-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e3cc7c9cc3801088967ba13c08eb70d6008366eed2ba443c916b8724af9d57d0
MD5 c9a0724afdcab5fcc7876c3826e45f34
BLAKE2b-256 4ee4d1c9fdfc319a8d2525c3984056df7cc3eb0a9f9a8ff9353801023684ce64

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.603-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.603-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bc9edefdad8104bc434c39e45aa6eb9817dc0af88243ae87d4989e89b7be6d2c
MD5 e6e9811e4d5221cc8caddee5a30e2bfe
BLAKE2b-256 904341e0627486776fb3be7dfdee8093bbb802ba9fe46a8e64cdfcf9c3a75df5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.603-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a113364e4881912f32a33781b936ee82b95ada2f3e158103279fc5aa98955abb
MD5 3000b784735cb6e8056cfa0497833b99
BLAKE2b-256 a488f10ab0f426a5cec722b55945baf383cafce340a6e7dd0755e01bfcdb922f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.603-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f851b36bd40ad137dd63b9e0293eb633c6e6012c79d20a0678eae5f210bc512f
MD5 08dccef9d54343b4c761fa45fad00885
BLAKE2b-256 d07d9bb13f0cef04448165802b7cac01247fd2656b97a03aafce8a4f951c1fc6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.603-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.603-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9194f5c848ffd1e67cc3d7d7a9c9beda1276340bc7ba908dd5ec9196b3006f0b
MD5 2541b27bbebe6174fff5b6fa3ac8901a
BLAKE2b-256 8934dc6c45a77ce6c746472d4d312c799c6793b20fae15c3204e65d35ef0ff4c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.603-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.603-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 66f9f8d71104d97187abbdeab8c32e7025ba1f46cb699c18e6ed43717061dddf
MD5 af90f5c83ab83070da28f68f3e5aebfe
BLAKE2b-256 b923429623d4c4c187995da3327b2fed718d1d8ebc775b64a3eb927562c3abf3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.603-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 089baad96ae4fbfd2ea983c52660b7ff7caf54ed543052507e1187cfd0657729
MD5 eb14d3f683a7a4a02c63930417e30e3d
BLAKE2b-256 ba0754bf6b6d20c856d469347394dee1c3c5abc4292330f3235cc05174528d23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.603-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.603-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5609db818704ffee8fc605c7b6892ca089dd5c189e587c79866b413ca0c8ad74
MD5 a8c45e73b9799e878931a4fc242027cd
BLAKE2b-256 cc92827a957205b92f512db678f484391b26a6df8cd8d4b2e32d452e6a0dc5dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.603-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.603-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4ba2ccfdc749eb94d20f799d8b6ce6e179440928c27bb6728c64a8e1f17612c1
MD5 ff43ccd4f38ad9f35c3b59cc085b170c
BLAKE2b-256 1f6a2e81f77265c3dccf3146512a0df957a6bb7dcfd16d5e94ace26f27fd3b23

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.603-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.603-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a8dbf36fc8f8611fa0d74c990e4d72515b3425fd51312485f0ff85c1d2ab0194
MD5 e71ec2a451e49ee338a97d47d79281de
BLAKE2b-256 e981eaaa080ed6425a545bcc6e69e9f14b0d6a98e81bac7b3bd222aac02bb62f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.603-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f74be1b3d4f1ac6cc7faabd1d6b7efb4ec0bb89266db3a018e9308df2a868a05
MD5 f7489e348b7ce7363133264f0ae3eaee
BLAKE2b-256 2a945379ec2e0b7a9eb33213f3f725ce585736a499809b35cae5022df59caef2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.603-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.603-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2140a026907fde03e640b8a56d03da5829e71140254aeff1c1617928e88ecb47
MD5 c3478797d09459371e86022d27467348
BLAKE2b-256 8a9c0608b4d55d4652fca6fa6e6ccc1b2d50c02efa9b551edcf545f57fe6f249

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.603-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.603-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 30e576a4e85cf5e187c2cc10a9cb8c279d36151e405222698f1eab2d98f585c3
MD5 6a06aeb2eac38cf22072dff82a3d5b89
BLAKE2b-256 32e6ddf5c88789ae5328c831e0bf33e81a42f3d8501a9d7b592d1669ec33ba39

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.603-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.603-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a973525d75ced2264436b6252cdb2f07feaf55812af3338447407c24245527a7
MD5 2704937973dadc1a947237a7ff7daf11
BLAKE2b-256 f29608cb759d4adae3e5831a8d5d7c9248b20de51bd644b57571c66044549dfa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.603-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7478d03767a2b1d7da0b5778f74fdaefd5aefea7d3a253f0cee0c61ac6b1a0da
MD5 5a35d2c764d35d2d38b390c33c5e4d01
BLAKE2b-256 70a71a691911bf8f58a38bf4cdddf66672bd24b4aec9646f4a357a266a30e422

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