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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.882-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.882-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.882-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.882-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 aa9d3d1cf512e0458ae7de273b0f5da8075609b5b78d838380a3b81bc2e687e7
MD5 dcffcd3f413f29337a0e2b6d57ce7f4c
BLAKE2b-256 4b099cb7a3e650dc6a36dfcd4ceb10ad5e0b353d753ddea378e58f66bcf27c7e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.882-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.882-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 cc35288e04ffdcf9a7dfcbc38fcd32990eac7995514a5c28cd9757d5b7045501
MD5 f1c75cf642079daa1b1774cea59158e3
BLAKE2b-256 4dd18837126fb3bea3a415510db3805f0010b71aa822770a97ee4895afcd5d58

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.882-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.882-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a10f9928137d5b1d377dc333d59d00ca2f52d37a437e0100ce7b25b234d03cee
MD5 cf5a9e435bba026db7543711b0b66525
BLAKE2b-256 eac5735f8f99f3737566c39366a18324b65ab22c82b56e0036f832559fd31e0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.882-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6e326bd2394561a4fb67bd082c78f20c7a37cfac5aa848fb066cd56299953694
MD5 4896235f923443e2d86e9199db6994a5
BLAKE2b-256 13db3eb3b457c171f012cfc8abb417c5232876e6c86f9a722e74fa5dfef05447

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.882-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 447c1bfe82218482a7f0cb6d8e0bc8ad3a8a2aff9089895fe809b654829b81c0
MD5 c4328c92e326524e1499136cf88841a1
BLAKE2b-256 0ef814396588455d1f73c24228351813d53b7203e3aad75225c163fa7fb77a16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.882-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.882-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5944b88577d6b447ada77a64369d5b53376832fc3f91665b0a96f3ad70e2b2c6
MD5 769c248b5f739f832e1b65dfbcdc669a
BLAKE2b-256 021c1243ab064c9ceec78906e19799d61db7bb650c0f5d886b11f23055816350

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.882-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.882-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 57edeedd61a87c4e5d487ffd47ae1a6596c421fcd81925402bd2fb9983045029
MD5 43f9c8c7e2e3f35e199f6cf25b53fc56
BLAKE2b-256 03b3e5fc626bb10b7040c4d28272c8becc45cf85bee9583e43ad1211bcfb555e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.882-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e5879ff2ca87a0f6dc4414281d6e84b8e34fe1f0e001a023eab3328f1e02b98
MD5 e48c9dbf0a189252f47ac0947be8af20
BLAKE2b-256 f2621ef21dae1769b838ca801b16eaca1805330d8e6a5d6d1b7fc6ab9973097a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.882-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4b7ccc02209d59f326b9a961ae6e3df7ff323b78f5d4167b872b1b7bb67121df
MD5 eb7a82016e907a3f1a2ea679a8467ad3
BLAKE2b-256 34dfd957a3c3c753b438d05bc4e7b9a5fda6cb5e68934dd1dbb1f437f533bbe9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.882-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.882-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8a3881b4cc4100c3e7116acc5edd40b580a416dc73d02eb312c859dd7af75ea1
MD5 41f0a26a971353272ffebf5f257a7954
BLAKE2b-256 b50d986c80ab03bb4f209419d74cd38875592a1578a1775526869744b456c011

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.882-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.882-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c5fb7dcd0cc847ad4837981f40c2130ae60977745c54d2717850b0ab385f9767
MD5 9fa2ff96bc3e18f73823cb88bcd48ab5
BLAKE2b-256 1d7cbecd5d7c1782793654b6d1342ad2ecbdb9d0529d5c4942fc33f11ac1214e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.882-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 da9319bf3543ad479ebb194f9904caf9b99ae3afc748cf590fddb33c86aeaa96
MD5 e94d98a8449ca196029f1f2af5e4c038
BLAKE2b-256 24c424e94776e680c7caf504441894e8934545e4f44b67604aacae77dfea829e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.882-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.882-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 66169d675c3ba1b3fa5d2bbd2f49edd837809eb968d8141fe2ba3ef03fd79478
MD5 aa1a1cbe18e8394d0175dbfeebd77e35
BLAKE2b-256 1b95cee951c76c753a3cbdd55e9cbb868ad8976daf45c7cca727390123657644

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.882-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.882-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b6566f495900c418a59796450d55af8b2a4e8b3b45268ac8403846c085a8303c
MD5 296145f40236c9b3a325d67bf3ba0980
BLAKE2b-256 e5387634abc04fed89419030d4bbe2f89a926fcf3dbd0b284492be3ca192a895

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.882-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.882-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 262ef782bcc668fb12129172c483ea2e4412d82affed7e16668d4e906bcff0bf
MD5 fcb85d388bf7be26d7e2febe78aeb438
BLAKE2b-256 68621d967cb9ed4e26f34ccc7f1a2109ccc0aa932faf6f682a7c8ac735f32a7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.882-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a568440ced706dad341886be72f32da83b1e27e8f63e797e1ecc12cc98b4571e
MD5 b33adbeda66c52c1fec93535bcc44813
BLAKE2b-256 dd739d55d0dbdb4919e4618eec84071aac9b9e3a0c31475c489dc246afce4d5f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.882-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.882-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 29d138e8275ab59382c9100475fed49f2c444ce460f66bd460a574a10248dd62
MD5 afbc0f7345bdeda97e1b47acec391f03
BLAKE2b-256 ca4a78dc86d996f7200403a9cad9cffc1112783c555db67bdb0025aa0568184c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.882-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.882-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bb77903dc1532bef53f5ea3f48139a51cd2b4c97d916f83b415770c8ce63ea44
MD5 ddc723e33ec1253577a0579b59b385b9
BLAKE2b-256 d2c5ef4c62325749f7390f84e82d3ed84461752a3667cef2f531b26113dba826

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.882-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.882-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9c9bf29d0957c6de9863ce65b46a9f173d49ee6ce8a35bb1751b7d54cbc28803
MD5 7b7e341941fdbe11a9803ff2f97d418d
BLAKE2b-256 8efbf4addab3d44d3dcdb9fe59e1381d6c0dc2211862a24761117ba78f90c493

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.882-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f8c671657591f5caa6816b8100f2a32c6b1e08be911e847d87cde770453f54f
MD5 3c1167cb6ccffe299e63d90979391da3
BLAKE2b-256 e995bbb8063a60c26553a122d5218e021e121c0537cbb04db4459661530f4f22

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