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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.581-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.581-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.581-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.581-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.581-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 538a477de4c3dfeb005aba3d60aca5fdc186572d60a44e9a1c8e3c7a36912fcf
MD5 0a26079ec0d6a24d7712715166a26af6
BLAKE2b-256 40b52ce45205d6e9684fedcc0ab345a8f15b7ab6421549d54e5b41359ebbe937

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.581-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.581-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9f4fbe974e91b9422bb323857059da874374850b26ba45292d1d226dcf70343f
MD5 e512efe10ef144e4b1d25afe8875b355
BLAKE2b-256 70ba14534a66ec892aea51c3d158cde6cbdfad3b5c24c9abf6c35ee7b0a57e78

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.581-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.581-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b93b053b38a1f97772b55def962425134e0ad8ca255850cc6634085f3c9f537e
MD5 a1ba06b5c873bec9b7066d20fd6cf396
BLAKE2b-256 60a67feb9cf65a6b03abd194406592494e727779a43e0a9172ad3a07822fde40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.581-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1408446bff9bc028dd78e8e8008445f12301b68e6b044b061bd645c210d08732
MD5 0e1618fae0b1f27eeee47f2ca381375c
BLAKE2b-256 859bbe6add97d51b15c63eca01214382fc8f04ac0713dd931946bbb24c18b42f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.581-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0139d190a3065ba76c441f3215b7054e17c74781aa4d7e1e50a722c0c19e00c5
MD5 589cab9d1722e3ecb21827db8822811f
BLAKE2b-256 615e3b4f8f35ac9251aa432dddfdcdca4df5d1d9139ea89f42baad6809a8468a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.581-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.581-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7b71639dd26218c6a96d2c760697246b8116f906cdebb31a4be3ce96dc1f2c34
MD5 3fd6e6bc5d674ee1a1f5eef1a2285664
BLAKE2b-256 239f24904549849c31fa8527055be3e71d2bef5bd68c9893e7b286b9a4db413b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.581-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.581-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3db417cac605612f6caadfeee6aa9a40a672d34e862eb8cf732c7ff24f5f097b
MD5 dd0b2b0a5de6e3b46cac27aa505d51b5
BLAKE2b-256 2a6dcc143c25fed625cc152aee56e70c448444eb43425cf59a21a6299d700375

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.581-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8602cebb739f80bf3165822e45b1557a5a4924bb25bde0c7f066b1c040fc3102
MD5 f5fcbd88138002284d8266903c551a80
BLAKE2b-256 38abe7fb6a94d8422b56ca00fd6e1877dd3b414da760163d157f0a2d2c553988

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.581-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b6407d67beef223f560ef6a1abce7e0ad21f40b8e5fb4cc1165d76e801860f51
MD5 2b0627f2bcef875b0efd78ac3ff5d5da
BLAKE2b-256 60a601c33ea79100c8e9a93f70d1ad24356fe48a2694a677e92e96317cc75bb6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.581-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.581-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8a1896ca088ec719f534827c02de3191136c5c957ace45ac28ceb2510f2658cd
MD5 9adc1ed9331a6c30ed4086f9d053e050
BLAKE2b-256 ba6fa6807f4871bae0ade4cdb3f3739e38514667b46961cae758ba8f137ae6e7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.581-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.581-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ce233184ac70f8c6edef80e1c42a4917178847fb6aabfc394f54a169c7f27d03
MD5 bd4910dae61b61e3df64790c42f977d3
BLAKE2b-256 3bfc7699c342d42f575a206ab7ddf2753e70e50ccf92740a069fb1333551c14d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.581-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b53c3502671bb1c47d8ed248f2a47d6b3e64a76275cde63b00f4b58a2bb8a5b
MD5 34a794abaf02fa1fa4a246d4c7e6156e
BLAKE2b-256 d97858e403b704adca10cd564db93f7cf56f9572292f4d1762fffc0254b9236a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.581-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.581-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cc27c35e1976c6523522708dcb6745e8114e50c3b2cd9c197f8256d1532da4bf
MD5 4d454588ca262512eb208a18a39ff490
BLAKE2b-256 93afc97ae4baa8d52a2115b0877567f8a53d345abf4b4c4501aec5755f5f76ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.581-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.581-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e961712bd30074515e05d3d1e05ddb8bde2b2c33c02a644f2b60e9eda28fb396
MD5 61ee8af4f2735ee3c8784bdfdc73ace4
BLAKE2b-256 9c9e11743b0f9b73bcb1718271d5df055c59ef71862dc7cf4e8ffc9985a808ff

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.581-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.581-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cbe90a94a72fd87db0a8ac585709478a0d5536d0cca1b640891f48d5a60e871c
MD5 a65a3486b44594312e2add5627a4e9ca
BLAKE2b-256 46596300c5c1a5f786df765f5158430b72aabebde408a13579cb9e563e35f06d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.581-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fd021ebbb7cb14b48004024691c23ea83d192671bcb8ce6bf9f1bb32ea47abf7
MD5 ef97f55b69d654f4056d005da10908cf
BLAKE2b-256 f6f07f39920289735a99d7c23b5ed583c740e704e849a4170fdb2c5a0da3327a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.581-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.581-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e9bac3e448038cbdcce853ba71ec3587fb9c157fe018f0803dca271f6720541f
MD5 dcf69b3c9d63133a54b518dd5cc780d1
BLAKE2b-256 3f40535bb8ae7f22e766adfcf9d4f9dc7729e5b0acfb71936b7761912cb42824

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.581-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.581-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a6fb7729674bc21077c556aebd03438e718d9f5547690182a1f5a6704ae08652
MD5 e444382344bc5133368f8605e8714e4e
BLAKE2b-256 12bf2a5672e99360710922941954e2da0dcf417c2b3ab1ca4677b3211bebca98

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.581-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.581-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 efe19572235fdeaa587b264bf66b78e78ca39e2ccec56f203381760b7389f1d1
MD5 dc93e7c73fc398778d86158524015e8e
BLAKE2b-256 bb1e8035dece83e9691df1dc65e8d2a425c3d57dd2963614b549bcb5c370323b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.581-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d8e40f0e10093c0646b96bbbfdc3ee842bc3d664e8724420d62acf6bef653ae0
MD5 a09ce32d684ff2e841f6fdf20b22c2db
BLAKE2b-256 df81295275abf209d321a96d393602ce5fd65469d21a2228efc569e881a5b682

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