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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.354-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.354-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.354-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.354-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 64d296f31759685d57d290f084f48bc291c0c66124534cd2fc55e7dded86ced7
MD5 ff9f51d4dff9ef160836ced8337b0187
BLAKE2b-256 296095464de1dc5dd22962a6508fec3a66df83a55fdb121dd500f99a5848ee57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.354-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.354-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 99108a68316f80290ffd866439156e6c4065ee4e0c01547cb2a544ca81f2ce3b
MD5 6b704d41b5127dad8c1decf833deb0bb
BLAKE2b-256 4472d02ec622f8972b7e42991e42c69f610f4844b85d16ccc910c4ff4c1456c8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.354-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.354-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 298e3382f3b67193e070d5b3d9c728ed4f7cf447013ab9a7f2278ff5df31b46b
MD5 4443b73c956c5432f1d848154989b3a9
BLAKE2b-256 2d663b1608303555256bcf48df0306cd2b89117885c1123762beafd65bd2e49d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.354-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f3ecedb7b57d30f031c70e300a3faab390913ad7e77b0d8e85601e16242f67f7
MD5 5c39d55d51634bfc105a91e823433589
BLAKE2b-256 1f38c0dc71149988aba20e27fc54504a9b1ed6b66bd2e7f78a282ed65b789388

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.354-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b1c7da7c6d855b2215e7458ae4d4ffdb8bc8433cf5b0635a67d4dc0c79ec6433
MD5 1fb79d9b67c80f41996b627c110002b4
BLAKE2b-256 404baa521f0b6768c6358ffd1be06b4cc720e205a4e89ea8af33fbfe61006add

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.354-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.354-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 114b8c5b5d8e23b0aa89fdf6d612552dfa688be47471f88694299e5fb651d384
MD5 566d6fcad296ba867bc1292b3d69666e
BLAKE2b-256 fbee6cc82f3c847bef2a045f79b19a50a071a004a118f0764f85a8d103f05241

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.354-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.354-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8095bfbf70064c4335418de471a9099a6636ebf0dcb72520910d1b239603e1c4
MD5 9162da38530a0037264af833ee7abfb2
BLAKE2b-256 38fe37c0a9b24d0d42460614ef745bc0b3736ff4cded3fc319225142fdda8bfa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.354-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c074ac0d99dcc8bbb5f4af3ed81ba6e44be161260864e4f33802de3ef4715fa3
MD5 f23bfeb27fbc71ba6084f0b8be867e4c
BLAKE2b-256 02f9b14d78bc4a21a5418ef65ef51eb125ef9334dc002fcb23eb07c8228aa1e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.354-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d4112802e57d490ff2f018d1c6a918d96401fe0eebed5f6056c58348fbfdd9e9
MD5 133e53b9b912ba31b72a5a73cc7f585a
BLAKE2b-256 f0d9d2d94cd696ce87986f20860ef8f35f7f877b4a6220d28826106c31140b48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.354-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.354-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f1a599d5300222bd5388ad62b59c9ad335eca563020179f7af00b3e45795b533
MD5 4f3329805483349ff59f7c0d3e15620a
BLAKE2b-256 3ad8d187e5790e4621b3afecacddd84bb2ef5c1dcf9cd4647f633b24aec41dae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.354-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.354-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 81c8517f9f3d0a3175c3d7fcbd24059b9590943c077c2d854d6e1f1a945c937b
MD5 294a43d394cfacf88fa03acdec9fe426
BLAKE2b-256 52ef1809eeff93d37fa2335e649c50f70a0a34107891c419d186fd18713defc3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.354-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c03e0955f36d8ba733e2b14052c4d73a100c0a595080a786e08009cd51f429d3
MD5 f134b34491b80e6246eec82b941e4d03
BLAKE2b-256 f798a9c41273899aaaa188d5b421bb7b7a362730c275fbf4fc976a08c8cd2201

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.354-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.354-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 44ae173b7ed8d0c36e76702561c21f46274b8893b37aa9a80bb95b157be63a92
MD5 f013b5a8a366ec53c5fa767871bfdf60
BLAKE2b-256 af5413ec5fa3757aff138b7026c15dd5c7b6415d4dda39885d32f0fcc1f7012a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.354-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.354-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 37dfd14b805248a05987d8f62e789b88d3199d045c328c766332544ae9e98cd6
MD5 02c250f94bb5005dc0fc2825e7994903
BLAKE2b-256 0cebdeec3878e781d382d4a11dcbf3079f89f5be7dc8e0804101064b904d9feb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.354-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.354-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6aff8f93d5ee8595edbae9f32b4a90e5df54786180945c6a6311df127b73eb70
MD5 ff23ce8fdba34fcfe2ce4ff1f4dbf51d
BLAKE2b-256 9344f44c432d6034a903dfb3b239ac92825fa1839bb86a7ef46857fc8530ce95

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.354-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f79f2faad4f7d628ad821a0e1091f394bd060c4daba1dbfd82049b6d7c9a3303
MD5 0f59e93635cd5ffdae99acc02e52b458
BLAKE2b-256 4507727f3607076b58b46ed7c9b96a6b460aec069bb46efd21522cf7fa69dd48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.354-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.354-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bd72070ba92c9a88cc7ee8d5e07436a7367c02f2c5d366b74ff53a41f654a097
MD5 b5cbe55c2227918c4a2a1fbfddb9b55a
BLAKE2b-256 3f838b0c69c7a38097c7a2da2a6c4260d96274f564a7208c46c91284f9bfecbf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.354-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.354-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f9c0235506abac83dfba135db8e722c3d19ab4ebb0b29714efa16f764fd8a398
MD5 08b8125431153820960a8ebca48656e9
BLAKE2b-256 b0584992ab11f18c3dfff5e174125866a70484e3f7f4b15c2843b0dc639f8f96

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.354-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.354-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 83a1fb68192ca0d0b699273d18b89183fa79bca259eeaf816a3dae848e74e109
MD5 63d5c70e532f3762239bb8b88b4a83ca
BLAKE2b-256 cf660cea29f82415e9c4317397f05bafcc444174dd8c52549afdb82b9cb9dc36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.354-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 70c83f225ca5f6419d8cd55cb6734a26aaa039b9ed838e6b369bbae3b3d2b2c4
MD5 bb9e20d602bdf3b0c583cb1a378fc2d7
BLAKE2b-256 1db391232111c49647156302585907728be48ffad2f7bf7ce9f6bf1c6b20f006

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