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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.720-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.720-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.720-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.720-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 63ac4912d16eb22129a8e6d7bb46732a38928cbe8dce88ed902eb4ee891acf56
MD5 b675e4e4b8172a550d77f944c06f19b2
BLAKE2b-256 4879f97d04b924191fc1a8262eefec9282008200f2d3ee368b2d842745e9833a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.720-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.720-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 eac4a8534373b0736d13572478b0504f9cb084302c4dcf12d6d038ecfff2d45c
MD5 8af733c0cccd7c5346cb085b86846234
BLAKE2b-256 0becf8dfd59d062365921547d3e67bbd7b5e9a71d672a41a102e55e06e9dea39

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.720-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.720-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4a2eea7118163d1aa4d6cd0e09f32a82137412fc99a99bb9a546fe3daf8c5715
MD5 d5f47c7335270bb1cdd28a92c236c3f9
BLAKE2b-256 3f1173ce444a81c54caee0a4f5dbeb09db1d4b8d38427b359772478b3ddccc3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.720-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aff31997f199cc03176e869809a61b638f4eb230961e8eecc57afb27833ba32c
MD5 a7ebb01744c8a9eafa632e2485801a69
BLAKE2b-256 31c1191ebf2b63ee53f01ef0258311a2356271390c46cc6df2996ce53f2c0e99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.720-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ab2836f9297be03fd4865cf340d6dfa3278f562ff68fe409e2b0be9812602be0
MD5 54a78a675de966f686d546aeb4566cf2
BLAKE2b-256 3d55a28ec190b88ba3d00c560c4c351664def2cafb7e89e005c8a3b2054442f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.720-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.720-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 69fcfe5b2451ce8c76435c7e442ab696825f8dbe1930de3a68748bb8b3d8ecc7
MD5 b63ad7f74e6089f867098f1deefa8a80
BLAKE2b-256 9938e2226cf08725822d21d3f5b9c422e5d95fa21af5cb3c46aef44b30cf51c5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.720-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.720-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c280859ee16c2f10f65fae49f612630b233894878337654c34bae8d0d4c410b1
MD5 7eb975a4008f89b2ba9be2ab4c2361f7
BLAKE2b-256 b203297beda3886d6b06ef7a688074c3f80d22cb284c59ab9825fa23ed4060e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.720-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e070c3faa18c612626f7802e86dbd08fc1f4dff9901659447a7de66e802230a5
MD5 51c41c7179572d29fe986feadc7ff96d
BLAKE2b-256 5e905ea6e954b63db7253c10694b4b96db7076a11a776c1c1cc5a25d0d0f1d44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.720-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d19ff5208f02345b467fdcc782111add2ed7f9bf752d51bb5dea4109f73a0a44
MD5 d5963c2191dba0093391d47f9cb1ea74
BLAKE2b-256 53a470f8babad4fe64114154b2c8efac3d2c9465493dc922a7cd6a57066636ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.720-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.720-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7f4e1b2cdafc9a1b9f14a8d3cb5ed9b5652ef7cb24244644154b1ad976066599
MD5 f7e6d7441048de5c14d14d0e1dabad3c
BLAKE2b-256 128418b9ebf29a943e00470e6aef3acf266253e1b096179d4348a7807375548f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.720-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.720-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1ac53ff695043a54db4d90816306501f5333bafe400b7f1bb1fdec76455cda6a
MD5 2809931a33153179b0cc6294b0387d63
BLAKE2b-256 18377857f8712f32b4441a7b0dc13d3bf0452286208bd6960664ee8ce404a4d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.720-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 af31a498e70e4c2ada9617594d4ae2477438251cbd0e0e9181e0cc248bc72d0c
MD5 290e864c3a9b6f9883701bb84cc821ee
BLAKE2b-256 cb8f67f5b7179750e30d2ce49bf996c70b87350176ce25a9a5f6bc790cd0c8f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.720-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.720-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c435422a15e6dbdad12f910f5162e2f8fd8c3da1de5e322599618141e300db15
MD5 1edc23f2dce3668f786ccbc211a8074e
BLAKE2b-256 80c578157770b934373d14f37d02907281d4fc4f3ee95384aa903bae04b1a275

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.720-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.720-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 96d17e45c676adbe5fdc9903cd4d35ae6d2ce40fbf141ff5483cd924aba8d261
MD5 73cca8935a28d5ffaa8997fc12ed8be8
BLAKE2b-256 406672bc3e16a4cf3906f75b230b32729edb734e71f495bcdbe04907224be75b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.720-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.720-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 49ac0be6c63a74a2777299bf41f9bd3b801a529e8353ee858a7f486271159d08
MD5 6bb823e4e17936ae380afa988048d6a6
BLAKE2b-256 2cede6f57f53053de1fa0bf463c4d2aedd2899f59de05d68c416624e673dee08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.720-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 da6530363548b58992418d844b456cc96f490ae9fd59980616507aee292b1d55
MD5 59084992feba53e726982b35d4da042b
BLAKE2b-256 d987294659b2657005e78e0c2b75305bfc0d7d981e3bd08bf3d8400bdc54182d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.720-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.720-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 02d337ed0d4a4d1a9d2a8fc080d4367b346be923b8f06e7bc9bccdc48b21921c
MD5 e0abb23aeddc3228ce1a2c1c56005b62
BLAKE2b-256 771b1f254d7cdf7e8c8472e874d86a13736d5dce7b84edce516f25134c78456c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.720-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.720-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6680036a78e420fd3f64ded3c8c32cf2fd99fce008ca8bcb1fb6b010800d25be
MD5 91147e08cf392ea7b8c236d995213846
BLAKE2b-256 7685f0326ff6eb24b7d2a41f6d28a5fc9fec859c32ce3066921634a351d81727

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.720-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.720-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a08f049880bf0f5fc376c2b706d97afd5d77cce5a3ecf9a5a3136246e53315b5
MD5 3e09361e899e29e97489781a8328a3d0
BLAKE2b-256 3fca90b45561aec4f697f64c1db735e918a987104f57ed33f4fed9751c607fae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.720-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7784c46bab7400a8960340dd63b2c6f58a92a07285b82e48170e94ef82985772
MD5 c7e0ab4819e7bf7cf1c24feaa84e6d45
BLAKE2b-256 354bb3e6ff691cd490d65160319d6fb489da62e2f7f3b0c182ef84e5c20fd177

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