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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.106-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.106-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.106-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.106-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 263e0a811275e8c2410e1b8076bfa85f620d76f53f7e30ab85bdf451f72fca7b
MD5 290201e10705a4d71f3a865ef0e5a372
BLAKE2b-256 29a7ac57d5fd07c835317850d7df49d21adc45001d8f5550923b02a74a3ddbc5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.106-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.106-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 dc4c65eb229d390d0da6814a43157120a05b6a21714e7d2ec065f67656dc2320
MD5 8357858e4442c5b6c169d852901af7bf
BLAKE2b-256 80c761007ab718ecd5b09f555220f203cec07f643a6eff3279c93deeba95feca

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.106-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.106-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e8f83013ae91288116027cf03fee2e58a06441e5c6b574f9efae39465a122166
MD5 d827347221bbb5d1a74bfdbdaf8c7928
BLAKE2b-256 b207bbd26bdb1347de843172d3b70b6eb1927f7d95f433c6fa2f1b14e012fbd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.106-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c0753db018ed1d8e404775fe4a721c0224ba2a55f238885d2313d24d6721546
MD5 ee87d170971583576658ef31733b454b
BLAKE2b-256 ce178b478bcf74c1a1a966fbd32ef917761d3c9282cf2b871cdf79a992029ea1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.106-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e94b5e5f8e6a59a8a86ce9b594e99dddb8a03ba1da10b2c3e171b1cac16db151
MD5 fcef05d09253b8bb567264c2b0836b8f
BLAKE2b-256 c3312fb8eb40df501f2c9e924c7968408ff38f2746dddba16043d5cbc1484afe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.106-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.106-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 caeb45e37263df4c3ecc233fd0b55e1c58757758c1896f75f8806f603cf0761a
MD5 377badbd216f635eafdf957deb263412
BLAKE2b-256 f59a188d0ac7ef053ccf26de8cf92f13d528ad8712aa7350f78721779c34dfe2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.106-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.106-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c970739424a3f8d36fffae30d4126a58134207c92241d296b3a4089d8402ba89
MD5 3ceaa7de33d749b3a98837e9bd40878e
BLAKE2b-256 9530cc2041ef52328b0bacb095e4c37f6076e394358fd53107970d7922b75759

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.106-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 81f9fddfd4ae88ecb69b5a84088e737dab4d1c4bb7b3faa92caf07632c299833
MD5 2c6d0258ad1ce167ef544f7dbfbf6217
BLAKE2b-256 e58198273b7a8fc22c43a3d74c8be41cd429544d2f9397bc188a9765940c426c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.106-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fcce30b06e50b5bf30a1c57125283f180d53254456c23fcb9447f24af8e0425d
MD5 629b27da7aa5ba139d6ce2b87ba041e7
BLAKE2b-256 94f9718c73b1701189453946b74c67aff435949dd810232066b8f73bc029d5b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.106-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.106-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7c352fbce3b7953223a65af07587029178b3a27701a3d475bd1d2ff2eebe68fe
MD5 402b1aea783bb9efe975c2827780c316
BLAKE2b-256 69045e5a4495889edbc0b79e5ff321de7209ef82a2a7afdd2d648be2c3e977cf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.106-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.106-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 669267a216bf3d30abcd13c61323b791cf676563a86e1065bd601953eab06b6c
MD5 4019efa4ba649b86e44974d7623fad3a
BLAKE2b-256 6ade06d37a821dfb6bbb4b6bc7309f795f716443649f470f86d3f1cae7fee273

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.106-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a89cb84a8011d251655a05138fc4ae4e84cecc13a2b468cc2c0f99abe0e200a4
MD5 1bbfcd9eb20b10fbeae4e1b24fbe6f22
BLAKE2b-256 add5c9727889fad4f42b06f5289171d90c18ed171f251c2c18515ccdf5a62a6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.106-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.106-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d5d9b3ab5ea64737352eeda0aab6bc8a4df7a98d6f135781d0f934e9f35a9127
MD5 7af4f47d196bffae86743d94b3d3a4e3
BLAKE2b-256 7cfb81c5aebb08b527b1182a758a267a94d3c8edfb25f5b3163a5e2ba2f6a8af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.106-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.106-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 67ce68f5e9a3c8148b681d3660b96fc16763eb2f0c7179f3eb1b9943a5cb2e50
MD5 90e7a07caea307601d3a392fd8d0a300
BLAKE2b-256 e9c0d6e24a53c24cbd41c23d1ff6f3b4d1ec645f63ae1ff5c0fd815c6165a2b7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.106-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.106-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 00301b6b25e15c8189e04a089d4219cc6e1cdf226f2665278bf3096a1d5ceed6
MD5 759b6927c0f6e9d5fadc57c0586bec91
BLAKE2b-256 30ec6dadfc379dcb56469fb47a636111377edfb4c06a28cea7c37ef9b82e52a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.106-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d05952b55b7859dbf2b09fbd7ae85206a13b75ba3b671f5fe9055c4ad7e88cdf
MD5 a966a35aa62e36716cd3d04b9bf1449c
BLAKE2b-256 62937bfcc03d41bc01957ddad0c9abc35276d5864842992a52346c28a49d7822

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.106-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.106-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6d967b7064c06f58d55f92af3582fd41ae48cbc6dcff22dff0e6a825952ee87c
MD5 8f94496cdbcc9b10c41dd50ef41cf69d
BLAKE2b-256 e870063668e604d5cc224d4fb7de3663b6baf145358fa3f9b9b3f869ade157ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.106-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.106-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3297e510c3d5ff429794e4b7d0e54fa46cbe059dc96ba29ebf7a8e1df7d3f143
MD5 e3787a776bf5c5510b3ebbff911a73e0
BLAKE2b-256 b4bd63b29f2da004f87bf508734bf198b381b16360bd5771b0d2ef2dccca6d6e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.106-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.106-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9adf604822da655e603b09507620355b2db6b9a54395376623a079804f415b7d
MD5 d64675e5b2183db19f804549d113aea8
BLAKE2b-256 af2d4d767bd7c82de47cc2db3a55b2652028dd2a43092a6a178d38d03bc85a61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.106-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65563b28cd05f1438af02ca8cc3248cae70bfe3fecabc88352f7c845fd312d56
MD5 d0a7b51589c12ebf481afb0556a524fc
BLAKE2b-256 77d6fbb964ed71a8fe75f29e9039bc3b12c4f7aa6f9c22330a9402ba6c225e7b

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