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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.635-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.635-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.635-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.635-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a2fb46e4aba0d55edd31fd177d3ce9b40a82dce069feff505dae24f5d3d1308a
MD5 fc23a79c03f152e69ee089a9145b17bb
BLAKE2b-256 65e6d768013432f7c7da5af5e1f447977116870e4ae45f9293b5dc3dbc291a94

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.635-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.635-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 989b7542c3e7ab7af8cc886c72b4e0f79f30c9508d1a4597977f69b561657bf0
MD5 77a62c19944e0a3bc3abfb1630451bb0
BLAKE2b-256 02915a8fc37fb0ced6d4ccc53128001a116a44f8f32bc57fc8ec6c54953503dc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.635-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.635-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4951865380408f3649a024c94b27945b161f394ec9a647106d931fd4612af2c0
MD5 33871f7314d4f07abefe25d7d619c087
BLAKE2b-256 ec8fd3b30e41ebf61bc2b733e872b1d8dde2f3ee743ac6a6efaa9174ba27d6fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.635-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 721e3fb8b4f926b1998292d1ddeefd4fcbcd06776b48627ca97b40d75f75e245
MD5 4afe5e755f553fe105cc904003426901
BLAKE2b-256 b7ae7328c623fdc348975b33e3a8d8178636bc9e168de5b3b5a57607aa7411fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.635-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b5701272e2d709223723b291f59dda9a07a37ddc4d1b244fd6bf310274b1f138
MD5 02adbfc91dcedc1480f5a2a8243179a2
BLAKE2b-256 8a0c13da50e6389be9c58f8b84adc7563a4ea2655a286a0d0c2d82aa58d90d2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.635-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.635-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 15b541a00792ac3a735047c6f171a8ab73f3dd354347829bdcbfb4bdd931a279
MD5 6fbe56c2c8b9547f3106694371cd7379
BLAKE2b-256 f8b629895559476012c47bcf4ddab1c9bc073220e5287c13907501c7267454c7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.635-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.635-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c1c4c31a9d7105b3514ba6bd31b124486b29957bcb0ea3c83f4ca52085d170f0
MD5 78ae5b4defb2fe3714c457e77f17a108
BLAKE2b-256 b43397970f2144f7587a70a4a6316f7753255e9485bce994223e45130bc4f207

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.635-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ab5f476851bf08def5d3959c10b2483e8e69d0b161b27bdf4947ac3824bc487
MD5 a0cd54337efe6ab58e0d7f7fe8617283
BLAKE2b-256 266dcf5eeb6e5dd2de4cac2a1732636282c8be10b9783d4afc938a9c06b3d33f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.635-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e60e5d1018c42f7a38255ef8d672562c4c15bfd43d4a1149c5acab23a7ce5d3b
MD5 9c7f456db1611cdc33df50a04ba5a4c1
BLAKE2b-256 06ac549a713a77910d35bba4fc975581d0462110aabf048e25ab801ddb739deb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.635-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.635-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a3ca9662fe30b431a994c1471b15d63c3dc4526fd506645dbe53bbd974902b64
MD5 719564dcba20669c580ca0c3368d6aba
BLAKE2b-256 c56190cb093aee23b7a187cc8d19a055b48585ebb837ee188c3330d31e2c717b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.635-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.635-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 17e5c3115d7c1f68f211db293c21b1cbc4745e98e76320ea1ba604bb5f951e21
MD5 de00309fdcf8bcfc770c4db01ef60a7d
BLAKE2b-256 744f2f41ba741ef99c366db79987aa5440a8fccedbaa02d6dfe718aab9e6bcc4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.635-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc0426b1e1ad9c413a9ae57e0be1d9947a9c0a1219a2a59f30fdea467801cddc
MD5 52c95206f900b3a39ae537271f1c0659
BLAKE2b-256 ee158b603fdd11df15c8b77fbdd8dbc9bef4cf7204d6aea4e381bb3aa45b7e5e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.635-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.635-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 638c354e715e4e245a35d87684024263bd533d3b9334e596acce5a91022302c0
MD5 318d2d932834d5785a2a0679458f20a4
BLAKE2b-256 4577de0c866d134f8cb003bf8a8f50472fbfffa59bdc7327f2d1ccda5790f249

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.635-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.635-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b788f26ad6326a2da1c5599e58a64e02c5667dea5e9d69f5e2a36dd283b13fb5
MD5 ff99ddf46a12d6dc815527b278776dd4
BLAKE2b-256 f2c067157fe1f6514181b416a7c9c664f5d476c7a71601a167d7c05ff01e5bb1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.635-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.635-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ab19b136b8cae139d439670e69d635a3fbeb7ca3d313106bc68829d8fe024537
MD5 54417e1ed685ffdda6fecae3a727c4db
BLAKE2b-256 b60ebfcb277f2760fac65beba36d371c19de2bf5097be6d179ade89ca86df50c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.635-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f0b968f68a856645b08c9ca169ff8f133be3132b272393653b770acf9f159188
MD5 1016ad89735f497167baf7803b4f0b87
BLAKE2b-256 0f0f3b3559a983234673ff5b216912b7579db2614b4d33e5ee28b56dde1d74bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.635-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.635-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1347ac71a95939c54cde06c0c2bc1475a7f7d4830a20d856ed22032b4b7ddc47
MD5 176ad8aabeb5a5b5ea1ea2da705aa783
BLAKE2b-256 0ed7fe8107aa60bb836e003258b8a10bd902d7142e647329def77960773f668b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.635-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.635-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9418587273a098724d3d2203bdefcb40ca58b28ef5d9109aab390b7f4037cbed
MD5 c1670a54b38f369d9981cc95f000417c
BLAKE2b-256 c1b7686b0ca8cb48f83ef87ec6b1cc53a2a86746b0160e1d5579ecd0895692f5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.635-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.635-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 72efcb10494626f938150113a54176325750572bc8314989ef792e682a8dea50
MD5 8205cc550c8e268a937f6e990e4ddfcf
BLAKE2b-256 9a363ddb436ab3187e12b1a583ad492d4b58c363ff38c3ba4efdf00a5045dd05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.635-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d918ad1d4e2a2339a6e6a29af8625ed5acaa4685f957d51090cdd229ffd4052e
MD5 d4009e65b9277928c60346a08104e943
BLAKE2b-256 764fa9598a172589490477cfbd61cdc925e2c6b97b05e9150f90d2b8d667534c

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