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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.144-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.144-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.144-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.144-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d2c213e5cfdfbddec0cf981ee35169dc66908eda96d54d70501366407467443f
MD5 0d8daf268eee09e3c6fee4c1d187022e
BLAKE2b-256 84dbc5e23be88222b94de40f974dec0ca3c9d6322703c5d4e149d02cb09aa5ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.144-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.144-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1b5f34d78e33120933e2f777c63173aeb559fc6616db6d85d69aa7124c713f0b
MD5 fbadff9df4729236d553b6c9be979e05
BLAKE2b-256 a8073212d0347bb20b8a6ff7fee98ac353aeb741303c2f2e66bca67abf51bc86

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.144-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.144-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c70a1779d24398ecc41ada9d061fbc884c6c429550b620eff8816352e756ed13
MD5 04c7767b633abccb2b1787c4495f4260
BLAKE2b-256 2841f27c2b0c6a3cd5404062e151a36be82778aea1806951661f8e184e126b30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.144-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d875d428fe0291a71beb86841c23151d4d72432bb345b13829bdd4506b77a3ea
MD5 b50f458f4784050e9070f728ecc98945
BLAKE2b-256 aeeb12cb73a05c3ff9674355c37a21de50b0e178fd32b54891ee3ded636b9caf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.144-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 06bd16cb9ecca96a2fb2b4dc46ad745d6103b8950122e869d334a3c9439d0909
MD5 6a05e4c92f2dc38d1595ac2ee4eb3177
BLAKE2b-256 76db2c0a94194299cfa91ecb86672e2eede092c005c7dc08231be821e218e23c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.144-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.144-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 01bd770544d39902b5b132270a267ba12f18a24870ebcf6703872100075d32a5
MD5 51eecb8b6045b7649d6f3d3fe0947813
BLAKE2b-256 717a0d8143b8a2b85303f3e1a22e2afeee236fa10c03ab49558aa75b37ab4775

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.144-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.144-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 52f726b7aa947f91e6fbe2973675e608bcdb8e19001dfb9e1ee5d322da6ede12
MD5 1e4a5dff8c967b7334a0458f5dedc3aa
BLAKE2b-256 15a0902c654668419724904d361d29eecc1e8762dc17ecd42772134eb3d74812

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.144-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 80459a824c052d48ede019d379b0297c46a40bcd8f075bd07af3856f63b75f5b
MD5 1eae10473cef844ebaf944d0e442b1c1
BLAKE2b-256 e8a2a8ea04f2648d85652ebf51e1ff1fe4865d1a3fa34f7943657f90a96d4e4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.144-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4b6d3f9e8f11948924cb67e60a1b6a64e9e30a086131b98167fcc4bc0da7e68d
MD5 6bee38db5acc29bb923fe51ce67fe792
BLAKE2b-256 9e2e5bd476095762d02e58f868466613cae7a2046ecbb83eb8c88582525be321

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.144-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.144-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 547eceb206d5c4c190c5de29570bfe977adf47ee83de0f973b7a5e1e71007de8
MD5 ee3e041a5645aba9b3095875bf6ddd45
BLAKE2b-256 5e3de2197a41c26bcb6e1fc1ed68da45adc46f77421a81852188da34c3a22194

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.144-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.144-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a92e0fb1aa3420fc556a5ebc942c5921b808fa80bc0a38b4a5a59b5ac7624631
MD5 2bc1ae373c0b532135bba84d00aa172e
BLAKE2b-256 c626b1eee9a4972b5623a22944b6996842b23d5fabb488431ea35950281f8eb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.144-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1fde2aa8c10e72b5dff4d1c47cac90273359a967b54cb1717e8d6a9fed1a64a1
MD5 76a79bec015014d5a8c8a57fa731f4b7
BLAKE2b-256 2a1f5d6eda628223a540fbd40957fa3e857ca865dadbe26067e7fac00e86f76b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.144-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.144-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ded17f17d52ba68d403197f72d3dc0d3b529301d3a977780bd795d2dbaf320ed
MD5 277c97bd54d4895983effd4f00a3976b
BLAKE2b-256 2e77672aee496ffbfae9f61fa31be05db891c0e55978804fbf8264790f8a9948

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.144-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.144-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 894cfc74da8e25903bc98fd45aa464bd99e13b4ac185abece19629a9e5408897
MD5 3d5af47c129f5bb6b9d22388a582ce0e
BLAKE2b-256 8a28d6a2bd3d6ecd290b0f70eebd26d8ceeb3fa6e3108186a4b2d871d3b4c364

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.144-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.144-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9bc5a23f63e57bda5da13aea35ba1d6644363857c369f74b387885bdb8103ef3
MD5 4e6f919d45e762f98dcec566ca9502f5
BLAKE2b-256 c207ed34b20e32e3a1e2b33f9bd4005730051d7b7caf9f99f40434e27e5002fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.144-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 434157b71e9a004e95aa338ea89ac9d2df5bf227f3cef61f4fa2a1d9cc347eb0
MD5 02a142b4e0b48f0611e25341bf5138fe
BLAKE2b-256 07b907c80ff40eca08d65ee066fc6052a6053ed57602a0e074ea84acd56fe0fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.144-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.144-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d4519a1a25985d36cb86c4aa5cd121f20e7b48e16614d4e3508be207888226d6
MD5 deb4e4bc546629bb3e9b569178f14903
BLAKE2b-256 ff658d60a54a6c91fa179f40bedf142f3f3f2d68b8df26181f41b687f89e92f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.144-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.144-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5bcaeaeb69857e939ec0d543a05c02ead63445f11acb35412f7943627a3734b6
MD5 0f4a678981ad4bc2c320d95147a948fe
BLAKE2b-256 998cf228caeaa7bf29cda5ea3a4374bb253b7cf151ac2c7508807ffdaea1236c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.144-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.144-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c2fb14f848ea26aa3a5fb69a39205d5719a4ea5d761a7875229fa1515f7f1359
MD5 5f573b8b62b97cdeeec36d139338a0be
BLAKE2b-256 fb13293b958e7111a0ae5351dc63a0677024a955ebfa86f4e2c04a71b142b025

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.144-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 764d6de1f95d4ba3feda68e4e0a143149bbababf9141fac67fbf11a7f61c896b
MD5 81f6acebc8df94a27fdaa612079be299
BLAKE2b-256 6b8c1272b92594be52ba13b73ee42076cf44410833e128e15e40f7dbae8554d6

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