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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.469-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.469-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.469-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.469-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 16ba128d08e59963b26753a09fee9c42bca9f4bd98db90d151d06a67b6e0f92c
MD5 f05a4ed81836d61a92dd0b1a128836b3
BLAKE2b-256 2f7a7fcbdb4715895acb669898ff12960f12fca8f5d8fff20bed26ff33fbd555

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.469-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.469-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7c8cc0d54f608fe0ee4eea3d93f288300d4b7bf507d426fb2740e7f3920d6c5d
MD5 90ce2dabeb4aed0c7002ade68c43ec4b
BLAKE2b-256 4d2fa313e4bf56a0d4782f674699feab59f2c073ec8af40d97ab6fc8a7e15abe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.469-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.469-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6eed9c2b452de18c5e0ce8a278d00198653b26a49a2585023acb7dd0c3a37280
MD5 5dca754562f9129e9d29bfce80e893ff
BLAKE2b-256 6084f5aa00730db21e0f8eb9ec59cbf1c6267b3795d28a68b97a9d4d38ae1db8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.469-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 53b2685baf888f633ec90a78738bd428fdb0e1bdd38bebffe27288908a8f4825
MD5 e37175cea6828eb2c0d383b2e16f6cae
BLAKE2b-256 ea54bdd454bff99762c8d1571b7d7e1fada7ebfb97fc15b4fe238a6919facc67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.469-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6e6ee5d1b1969f6405704cb1da27f5aff53d96ca126be0a4e411508270bb3c06
MD5 4d7e6155c3f9c3a350b30304aaacee96
BLAKE2b-256 6bcc60f9520e326cdfaaa12c419df8ef9f5641c4fe82649c5537732640b1e73d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.469-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.469-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b1622901f8dd9cfa3cefb436e30663f9bcbc39288ea0de309815b2801928936f
MD5 0df3e74f54e5a2528fa21dfb4a53de3a
BLAKE2b-256 c49a1caf29438f117dd6cf3edc40fe9c11699679cf56ed6933d0d221efa5374c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.469-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.469-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 33b51b5a8dc01780186a48f04df72b95004edf3cd6188ac9b5506c226200c061
MD5 d4e57a415aa46f54e9684329c9d8cc74
BLAKE2b-256 66b64ad4876121774d73b16e1cceb8882324568006a47ef0065f41a4aa616802

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.469-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 07607ab2dbe6843a8acfb9c2ee8bb5afc037fdbb456c01ffcff5b80f63acbbfe
MD5 bec43866edfdb0fe23ee0e5aafe64375
BLAKE2b-256 5ceceb133ff00b4ff523e032d6c29d84516ca4f8265e31f46d2b57050819daaa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.469-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2d80a00ac13870ce902223a0ca04f8b69ccd5d5a465c10e1871a79f5a8c9e596
MD5 e981970f51bb04b2b3541436feffa2b7
BLAKE2b-256 b1260552d9d593b928a0c5ea720ab961d9e0f4e0cf0e1e53945eb97c69e2fdc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.469-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.469-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c2b7cd7660349f273fe47cd1df7bafa21f254038d142cc7a856b06ab4155b9b7
MD5 591862d879a655fa1dc660a5b9a55d29
BLAKE2b-256 133e211745872938dcaf175dafc04b88762a44dc0ee098e2b1fa79ab2a5c0648

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.469-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.469-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2c4dda42fc77d2b6c0c4b6f3a0ce3d9badf4b987d6c7f2ad745e9eb77a6dda9e
MD5 9bc65ae779236d25e0da03bf2c24d5bb
BLAKE2b-256 a7316daf4a5d5fa3af6812b8f98d28964a8d8eb0019b55233275a35aa9dd216d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.469-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e3c65df7004dbcc511d75e98202fd012cad940841261faa04af5588313d762ec
MD5 3e2ece07d3e75456c62a36cf00e5b95a
BLAKE2b-256 f8f190f801176d536eb40560d7fba3cd1ef8e11bbe9c9d5ce29f1120fa1a47ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.469-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.469-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 148f5ab2f08b3a68b445c1167bf76823cbeb5f1a644d5e1186e0fd5091335692
MD5 b33366b9f6117470af94c51c1d480e41
BLAKE2b-256 19c147cd1382dc2fbda8363e38650028e4cf87b103e659f3c2f7d825ab4d01f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.469-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.469-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 00561da09d3b70b4d717c78ed648103557d50570713ce9a70241a304abea24bd
MD5 5eb73ea2595b4adb045f3edc17313e0e
BLAKE2b-256 981e1844b0d42ff436d9d55f31b7a673b2de4a7af575790dcbd4d37f54c45575

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.469-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.469-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 782bddf57f9bf53a1410b0159e6bbb0420dd43c44d4edade82a5b7d805421977
MD5 6587930518bc11c7c1ddeb8342cf6a5f
BLAKE2b-256 db069cad0db3b463c5ccf49dd7109f8bf17011f5449c908d451761f7b193ecd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.469-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8bffbcd553f5df66a7b0eebef0ac218e9437cd7decfb071db82714d8b0f7d98c
MD5 b192e59e3460c2f070ca6144f1ce4d84
BLAKE2b-256 76bebce751f473f50f4ede80f79db101b7067241537501b54d57e5d992a3a96d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.469-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.469-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2ea35334dc0aff8c043b2d81a2dd56a6d18745e5529897d0b707f2e4a271d0fe
MD5 a53e4e8e62a572744704a9e392c59ae0
BLAKE2b-256 bf4a1b7829d76417a6c504c02e4c876d1ef2e8359491864305d077cf8675842b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.469-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.469-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a72165283a2d3d8106c87f099fbfa96f944a7f808fc5cf0604f1e2eab09bb8d5
MD5 afdb329711933b3844667c7459193e97
BLAKE2b-256 ba8936dfbb4d4961505ab10510c5512743f38b501213211a5ece90597ca47ad5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.469-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.469-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 159d9710468e2925bd87d68d3fc88e9689402721952342a08331d2fa51777bda
MD5 6a74d96aa473d91eb11562ba536cdb1d
BLAKE2b-256 6f4b10131e812d7b86ac0015e5c5775e28419f1b41950278a0bda4c12d02a279

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.469-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f776ba5c57a6a785f7c70f2f5b51feeae56b4428e1f63624ae10d45996d6660b
MD5 51b58cdca67b4b0d230ceb705d30852f
BLAKE2b-256 59bcb88f7e7805ce105f1655bc1a407d10f89ee269264ab2433cc75238e6c9a0

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