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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.401-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.401-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.401-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.401-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 187a204dcfd63a145d562bebc700a8f5066fbbf6ed9a0e8532ad7af7dcf1e8bc
MD5 379fa285a723ab2e5840c77e0b6b52ec
BLAKE2b-256 e13fd8842ccc61a63510cb9f2173a6041309e851b0f2924648de58c9a159f8d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.401-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.401-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 85c6f1354f90f2f0ad9f8d29b4be63ea4f63d86a3e2f2db24e376b6dc1e56fdb
MD5 c431cf0ce06e4ea361ee82992061b2fb
BLAKE2b-256 26a92f453eb07a4d8b112f38f402ddbe2e80a79860f78e0c4cee649bf34ceca0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.401-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.401-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a968b4d2aaa398658848af3b84a2796f0d0eba6ae8a46729006e06619f1cae6e
MD5 b57662c5ae84d6b3728bf254a20770bb
BLAKE2b-256 3e91dc515aea92a90e0bef4869826c8291689cecc8d22ee37d5b44f87ee15277

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.401-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e063023a99de295c77524e8a4ea0e53b806aa8947a3970e1306616eac7dc0ad
MD5 c226f07b82cfaed6974b01896686a6ae
BLAKE2b-256 ef2861bb040be823ccd748ef39ff1f9e93871f3f79ebfe8439edb3cfef39415c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.401-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0c8cabd0d4f1a9a07b0672e8b7754072c5861222cd419763f8db7604efac887e
MD5 06a48c521102b1e7a28d63abc2f0526d
BLAKE2b-256 d29f1bfa09378a3ae46b4326a3b4376e01727fc6a99d828a44e63d5f575206ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.401-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.401-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 540f69ed02ee6739b7eeac1e77bc6ef56c3ebb16208736459062f0bd74cddd4c
MD5 b13c0caef67d044fd6ddfe0c3d49d486
BLAKE2b-256 4595a1f4612f7bdae03ba7d2eff2ddafe97c3f00b04abb004b93ee8a48eafd83

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.401-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.401-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ec64c2cca5864859a0cd904b6fc66005f839088265e0f2bb332597c534a6493d
MD5 c37d1a35c41e14b1e300dad117b4a6c0
BLAKE2b-256 62634098ba17c90f8873bc83dfb55fed3a79a622ebc93f1224f6a746129ac413

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.401-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f0c1c3fa4737880b512e947d0dfd0b6d195a29bdb08f408de457e47ce8651ce
MD5 3022f3242c0185f43797a935b5bdb5ec
BLAKE2b-256 61da92931cd46898e23d3eb7658cc25747e985b1b12d487fd04ae42835999d10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.401-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9052e23fa0dcb31d529351ee218a966cdf269d1f6e54bbab952a3cec67ef7f6a
MD5 15bcca2d5fcbeda8e4cc74a760e6ac67
BLAKE2b-256 efccee48387a1bf6fd7e2885747a53c9a59e8e2ff1befdac35998e208c714cd2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.401-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.401-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f54251e46ae559ce69429b1b6d3131fd7af81629423b6745177d8b4b81321f39
MD5 026c742936d6e6c0747344dc22890835
BLAKE2b-256 a6d0074068b19b173430b0bea4475671b59330967024685006f7ce6ee1054d83

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.401-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.401-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1ca5a22fc1d4d31742e2e400ce73d402f166c84f65c680cd87f297f4ec9d1b90
MD5 5835d355955a17460204f20303902880
BLAKE2b-256 01b177cec4fa04e3fb213e3862f4e91c18f72f93af67d9d15b1e7e660967c1e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.401-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ecd72b915e42d79a7e8419e9914abfdf75effd95507c34d673ca0642fd11c2b
MD5 b0ea51a39122f6092546e1de1b26e5b4
BLAKE2b-256 0ed598f663f067207724006cb2faaabe53b9ca8fb646dd34dc2b7b1ee4a9d92e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.401-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.401-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a1c2fe031598fb9f935bf9051359732e46a36a8a9d95404e8586d7eefc0d7a58
MD5 93f54c30df4f3bcbe0af41cdad7b045b
BLAKE2b-256 052bc57c88e203d60e29dca1768fcf5b43609c9526cc3702c2c1620a52bfe29b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.401-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.401-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9712791d77a4a52556e80f969437555a056594d5df9922981dc76a3c9291ab93
MD5 7383989f90d82f2e085aad19ea314648
BLAKE2b-256 296be5b8d7a25c329096f7b802844876ddf4bc49a81d43a35ec5dbef61d946dc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.401-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.401-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e640dded0ab641033ab42089f76606573a1f24b491e3b7b51c75b24574dbf58a
MD5 4b7b530d5d6387126a09f3d468a316be
BLAKE2b-256 0a8aa805952ae6d4448b5d6270f589b11a51a79de1695e5a3fa5565bb4d13fbc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.401-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b86c7d60b8653a6d732006589ce2d3be352fadc4c8b1bd7e9346c83154655c5
MD5 6854d47cb12038de9b243613a2cf952b
BLAKE2b-256 b1940288ce1650a0077c1361ac3d257bf82a1c20928f55d3576e5a1bc9f9f57b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.401-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.401-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e31b433a8a4fd144a6daeae00d392080c38fe157770f845f46dd71aa15f8dc94
MD5 a57add6a91148c394ff6782498a1bd0b
BLAKE2b-256 4f375148ea4d05338abdcfd5b2fdef6957a668c3bd0333aac152be282218f9a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.401-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.401-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f171d868d1f863d9a1a6584e0b5ec074ce46adeac3a4ee2404e0e32a2be8773a
MD5 e5e16fdd063277d2b149079c0a6bab8e
BLAKE2b-256 e2b348451e6d1f7165283d69c20267968c481920945f50daa843972ba7fafd40

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.401-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.401-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b613c45e700c18c317e9e2c4f27c03eb62c347ea43746294688ac10cd365a96a
MD5 bf3783ee2f241cae4963aec5bf3fceb2
BLAKE2b-256 60f36d721d79277ff8e207f87a5e3edd8c3ce4fe414c4ba6da41e3d6fd180a0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.401-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d1b0b8c2b287d02583068bed95d076df55938b900ea46e304329786c96990d3d
MD5 ab41289cd92ea08472c2e053b58b9cd2
BLAKE2b-256 fe53a7df198d0cef1d2886cefcc4fae9d36df51c091506d8cfcdc9d02a8b20f9

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