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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.815-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.815-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.815-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.815-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.815-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.815-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2a85dc1bd3656d7a27188fb845b20ea2f3823724027953c5bb5614239ae9545f
MD5 b6d70ae3d338d409643f85d729d3e7bc
BLAKE2b-256 7237177b4035d201beb7f6415fd3a85d902297ce689a041565b15c8b6ed2829d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.815-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.815-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3ef2c6293680a572c789c0c405314a13d62ebb85e1dcef1345a00982aa25abca
MD5 8d0ff64191c1f272eaf2ac725b17b3c4
BLAKE2b-256 0d7096df7960f35ccbeabdad8f4fb84e08b3eaa1cbd56360ef9dbaea7afea13f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.815-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.815-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 699c0c00fe735940a8b6b27f81574b55141a24b869e740086cde55e9aacdeead
MD5 1ad1502e97b15d0cb21bddf23f7fd32d
BLAKE2b-256 43aedeaf7f4caeda113b707e8f7a1c656f633cdb4a0cad0c5144dc531b0cb905

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.815-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e11f60b6ab64e696c7107b2c561a542b272097c6af6bb7528017020c39c4600
MD5 6c3cec62980c9cc1e21f2349abd9ceca
BLAKE2b-256 c8f93b245879b516983b6eb8062c70b54b3494dc79168b73586200e57b6484cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.815-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ceebcade6dc62041152612a3dd1bcf9380b05768c9f3c1a9310baff16daf8aa2
MD5 a074f3fe91d05bff68a038a46f1e0aa7
BLAKE2b-256 bcd57cf02f74e58f652f60f3e73223172b33d5628d8347bfb210d7fa0ad7941a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.815-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.815-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5cb0d2fb35e020a9b7e2267c3822b65e1768941a1abeb30a86baa9b76e6faf13
MD5 1418344c474dd99d4fa93a11950e2d09
BLAKE2b-256 aa6fc21871731a44a71c6efa241e8092b0e7b35a7b7107b3c8a1eca03b606aa6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.815-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.815-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 091eb51f4b6191304488dc4deb3df47237efdbb589296df9746147cd3154cf97
MD5 66ee7bffa64aa2db19c56fd5762b118b
BLAKE2b-256 5d9bfa27639aac6845aca2c5f93a45c990f17df2384fb8647d9604e0c6cb204a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.815-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c9c0fec82c4ded70824fc4eb04a0ce0fe9fe9f682e97141cdfd25f6ce71a8186
MD5 81632754c8b3cebc622713b38ade05b2
BLAKE2b-256 fb2a5bca7647f175780e2951edd6c101ce3fc31a6912d279d9b483ec73fd470a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.815-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 80b66a7f5efe6162ad0b062034bee99532cd68ab607ed0a184aa1a7d5000f89f
MD5 7689abaacaac1ed8c9572ce7a82bd0c8
BLAKE2b-256 c917b4990851302da5976b00fe140fd9ed08581b33a21d40868d8c61cd45a633

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.815-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.815-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 209c09922cb464f94aa1464f6e51f11348ac0bb471d833d0855370665dfc98f0
MD5 340462631b3a285ce7b25c227113d5c6
BLAKE2b-256 56655947dea90c7f2ec797f39db97ec64386781183b22a30d49e78ff95e33871

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.815-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.815-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b1d7086e0bcefe9155a9acbcf932d2474cdeb34550e5746a5cd277ffd877fec2
MD5 5c1c507ad8e846aebba2bcc42d20d8c3
BLAKE2b-256 863344fad3a50aab2fa4ee4da73c3e71837c3f59ea6a9eff74f3bc00457c893e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.815-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d6d4b55fe2b8e2de920bcaa6e379ee5cad7a393d6e5a986eec3df917871c4f28
MD5 e88a73fa9b31a4ae1afeef8acf40321e
BLAKE2b-256 15a630c5c5af862a34bbf5e27f8c59dde78b9eac565a06b4fef1653fc946c515

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.815-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.815-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8756532bc37fd2409e36c2589000dab8f3ff190b20fa3b65e4f6505297cd2269
MD5 68630c9dc58add519921b841377ab6fa
BLAKE2b-256 b9538f41c6cad128f614e1e520c0f05b8fb5c2cab55347b6b8b3133e826eaf86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.815-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.815-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1b53b038923af594b3cd31e43344ee450959553b807b3d02d254aa6fa633c7a6
MD5 20b69181de5c884f1d088f0d0ccaa941
BLAKE2b-256 248e46361101df3427aa30386746ea4cd4e93995b113b851847aa8592734a5c0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.815-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.815-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ec6a629fd690863176b4ca15972835f8b17b3f4a27f2ed3a0fc076db007ab947
MD5 9f8b1088736eae2b3a8df188a18a8734
BLAKE2b-256 7b6869fa6ad514bdabffdfcfe8c8a7f837a0fc98aa4f99deeacfab840867aba7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.815-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e525853982dadc008ff359394421a0d5484f4e8597e542bfec8d001528c26b22
MD5 43851cf3ba158ecb5cbfa42a358eafe6
BLAKE2b-256 1e084aeff3aa7707d2c67edd9a7cddbcffe181d33cad5b0d751d2d0c57656b48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.815-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.815-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 43e4fedccddc3a28bbc8b5bcf5c400e7c832cc68da143c8a8e4cb80ef840c5af
MD5 ea1c64855f60798ceebc5b4fb1e0913d
BLAKE2b-256 a77b416dfed32ca3b5128163f1f3a3ec1b326b70d965aea472adde9dda9d5a2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.815-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.815-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0308c86533dda8f71ed9d6f531119772ea2a1885a79a613ac45ea2ceb153d4e1
MD5 fed72c00e150f834edabcfc372181cd2
BLAKE2b-256 23ba7ba4a3a5981d8d2cb262b789af5f51f18fc7e6ba1b0d7797a0eed0f82e34

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.815-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.815-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5fb9773c684591f4166d53f5ba3bd59378f77d6a0b4be2248873019a3bed9e57
MD5 88e6ad649a3b8f744d598db21947d9a6
BLAKE2b-256 63913b847449373901ab788baccba671618f35d880f54a2754276032619a0b96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.815-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 766b6f40a0360ce0473fb0a8d78fb95b94b4d7566966ae8081510197dc566287
MD5 5b86b525636f7dd646fb30218b8243f2
BLAKE2b-256 3a75fec6391a6a1006df6cbc2a73dae055e8c60f3e7425a43dc0a90148e10c65

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