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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.32-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.32-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

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

simple_equ-1.4.32-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.32-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.32-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.32-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

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

simple_equ-1.4.32-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.32-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.32-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.32-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

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

simple_equ-1.4.32-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.32-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.32-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.32-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

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

simple_equ-1.4.32-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.32-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.32-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.32-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

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

simple_equ-1.4.32-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.32-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.32-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.4.32-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 277b51553dff7efbbaebad42be5a93c5ff691c65521757407583d5f9509d7cc7
MD5 7f52f226772b713bd91eade3bf188248
BLAKE2b-256 078bd3b23372a55c86f0af07a98aeb4a4c9dc853fa11a954934374e02510868e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.32-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.32-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ca2217ec8f481cfab05a4e8a6cf8e70b2092926f0b2f10b37aa418aded4e98b5
MD5 7f27cee93015d44a86655c3cfc621092
BLAKE2b-256 c4893699864509702cbc478d6f587695a48ea1ef54ed95f294f267ddfcf446fc

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.32-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.4.32-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c1d60c42af8221240194484b51fb73b58b12c1a36a2b552d85f8a4acf5b09585
MD5 ee4d1eab55140c59d9df00138619107a
BLAKE2b-256 916bd481cc93e066702918cfc83e31620630c78ac2cb14f3f8ef109d796a31f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.32-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ceaf3eace35cd7a6eda25cbfcf4ada580006ebdd13a550c6336e9dfa0e5ff7a
MD5 bdb0a002f501698e7ae5fad41c2b0d6b
BLAKE2b-256 24cb4e9bfb0b9d853a17fda271177442b5aa288175fda59ff05735b70141f030

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.32-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.32-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d9944fbfd9800da9b16a1239a29ccca8d43e24514b1bbc748eaa73bbb27a16bc
MD5 09a0d51ffced81763a6df01ae86788c7
BLAKE2b-256 eab33efc3386e8629d6c07782fad3be57ef33e45c50c3b07bd356a4e87bfb940

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.32-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.32-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6c3fa951a6cad9ae6e046d2662f57a3700793c9509477ad975d189c273c776b9
MD5 0c2b0f1fb9eabef6586b6c8be60f4080
BLAKE2b-256 9f96707cf5aa3140d6be3b0fadca466b4ef05d88701221ef3668e6e31c6b1bc2

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.32-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.4.32-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cff1cc7abcc024151cdf4a760464a470bf3ca78b030d39610cb89152350c173e
MD5 40a835a4ad4abc0123c20833124b4a5c
BLAKE2b-256 e03c81121a506ad7f5636cf9bd8a78126fdc9ff04f0d09509aed0a87d589a817

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.32-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 31cd2553b18bfc45d419ac195924a594fa3ff67c85af8c1db689602dd2a9d27c
MD5 87fcdfdf5d8a050428d4cbde4ab42e3d
BLAKE2b-256 b7d9c62c07f004b76b1ab0f007c0dd89c00842867f9225d3524449f7de8b0b22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.32-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.32-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2b30e9ca13fe598bddf5e0c36f8b33b35365e63257c4b4c3011c4c4af7394017
MD5 877dc23d2d941fa2b158bb9cb75b800c
BLAKE2b-256 c9db21f589069b0226582b6e1b363ae88c24f2058528ac98d2879840a34fee38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.32-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.32-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 da510f9b661d7d3e15a5d10be99d6ae5c87525d22cc0924fab8ce85665795500
MD5 ffc4ad18e441726605df85afbfa339b9
BLAKE2b-256 17dc95fa5b7348f29424ed2c17fd33e45e3fa02d4d113e12fe1638e40c12f01f

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.32-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.4.32-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 45eb818c920267d177dcc965e14138bea753340a1e6ffb0630b8c78e90e83081
MD5 d1c095809da179598042bf9b9296f128
BLAKE2b-256 17dbea78f475d5e3385e8defd573e3858a5eda58cc9761e99c488273ca451181

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.32-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f03eeb0c2e39365318c8b5ac23ab3b116812b92739b8d3da3c9307495a18ae65
MD5 fb050d49724b033fc83a6a645ebb609a
BLAKE2b-256 711c618afa16af9ae14333d0ca992180381dc8e60eb5b386852cc62aaec3a1f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.32-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.32-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 219a4d2025320a7487389a313b0587dffdaa77390184613e1a8f5c8f6400629d
MD5 caeb282204668606fb0f38eafa7f9a4f
BLAKE2b-256 4addb266ba91ef6cf82fbc50ee8c60ca288af6c1fe9bc5a6cbd9c7de28755066

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.32-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.32-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 27af031456ffaae87ae86dddd7e82216f97173cb6cbcda64f15ad32e17a655c2
MD5 85964f891edda8f4fe8c771b42c9f867
BLAKE2b-256 92ad3e98deaeb213a69ce4ba52353f3c933eb70f622a450bb35270a103da4d03

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.32-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.4.32-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8f4e29f29796d0d79eb6ff42081d556b9645a85035a37111d054d0117058889a
MD5 ba76789cc2fad6692d5aa4a9cfae37e5
BLAKE2b-256 79ce6537cfd972d1f40fea5e3a7a8ba16a9080ac3e227d32b62722d55e1cec9a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.32-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8ebcd334603b4da01aaef85c6e99d40543b5fd12f9e92c423551b3b5d2ed2571
MD5 fa03ea3d9b1685b26a79b8da2e69f4de
BLAKE2b-256 20aaa4123207be9fa3f23f7e42388fcbc00b995d899abdc0ce60317bec440c3d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.32-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.32-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0a2da08f2c062c448613eee0e1f37828bdf0742485ce3b18c3a09f1a18f651ab
MD5 bd4a3e50296222755a89a390321c1a1b
BLAKE2b-256 02256ddaca3dc9353ab45b6ac62fbc1dd3ee226e3b2101ac195b970e72c307e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.32-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.32-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 36da925d6f670950db0eba9a0b22525da9a8ec22291f9f7e985d9029d399f10a
MD5 aa8f93d91a59805f3e7da9475f2bd29e
BLAKE2b-256 c4f556fda65b8ceca51ae9c0dfb884dbb0d76e175545052cb635d4050e2aeb73

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.32-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.4.32-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 83e5361978d2899a519f623adf16d8d68eb62b449e847981366992bcd7244282
MD5 218eb9561ef32de56f7fbbce387aea01
BLAKE2b-256 1a63bb1976e3341efa2ae184dddc4648e7e68aaafa748e1e24ed7ee6fcf0b684

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.32-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 13e4504651de7a383ad4a2ec7961387e7fb78622fe373a2fdc1283258aca1000
MD5 47519cafc81372cc758711eb8059d523
BLAKE2b-256 2c3971a2856e885e19aff0b3dad5e923ec121b1c1f989cdf486230717f82c6b2

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