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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.40-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.40-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.40-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.40-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.40-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.40-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.40-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.40-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.40-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.40-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.40-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.40-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.40-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.40-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.40-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.40-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.40-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.40-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.40-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.40-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.40-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.12, 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.4.40-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fba2635812bbb42ceeb96532d4af65abb4d0e21b076f424a945a34fcd4ed7c7f
MD5 3101bcc28d608c43b46e2530ba5e8567
BLAKE2b-256 fc09f674c1c4f500a01e1d78147d5bad248c59d227946eca5292b1e204283d0c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.40-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.40-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e89e9e4671f1cc85cef28397c60ebe70fadc6166a0a329fdcc34cbab1440cfa9
MD5 a8d6e580841f06cda5aee0e947420a67
BLAKE2b-256 8bea0a8d007ecf65ff81bd58e585733c352130fd92275b78586832e4310b2dfa

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.40-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.4.40-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eed48eb23f04ce81a7a16fc7d47a39899a9fbb6e93aae9e32ee44c4e93d848b2
MD5 3fca45d2bb0be9b852952d928c4fd353
BLAKE2b-256 dc9020a58ca0743bfa52b7e4082d680d3017f8e642b800357ff666d13d373712

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.40-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b7008448973d8bcee86bfd874b241c8df97f0804712da04981c5fd35fcbc2c46
MD5 997d17eae9d03c6a61ec5f9ebca17028
BLAKE2b-256 07ae1aa5f156c2b0af69d33813a715365637bdb13ea1ff70331d07118609506c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.40-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 kB
  • Tags: CPython 3.11, 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.4.40-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a1fcbca79fba420166df735d8861530f48cd3add3802e6758a28e2609b98bd3c
MD5 070561d480a23fda12095b9c528b41c6
BLAKE2b-256 45af09b15b60699d8f1adb63b2ba694044a7fffab9033ecf4ddf511b707067c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.40-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.40-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9c09a489ba812d1567d6fc6aad44ca0260740a54be1d049567b54cf92cdec759
MD5 cfbafb5284d62fecfe04943d48e1add8
BLAKE2b-256 aad79247b78fdc45d8b5e3747429edd8f1dad2140268dc6dafa61e603c21c553

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.40-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.4.40-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b0fa5c1c22e44bf8c25b1088180f4a57426cbf7d489bcec2d43cd690717904e9
MD5 1655ca3dbba3f1361fc5a24c25863e60
BLAKE2b-256 df8b531b30b7319e56dc047e5132f0fcb33dc7ed18e6d4d4183bc0229ac06c80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.40-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 089f53091521b8b95d6a618f69b94a3605f1a5d8177bb3373d8296042616a9b8
MD5 22fee917eac052b519207d355204acaf
BLAKE2b-256 1cf9dd7b593b0dc573c7be6b56bb266a7440996a81cc016b5c174d8e96a51273

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.40-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 kB
  • Tags: CPython 3.10, 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.4.40-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c36a445caa6d241f9ef28906cc0c9c174e36e33e895c900dac967f2121431113
MD5 a5f0133a17c7c3eafe7071a01b0c74d0
BLAKE2b-256 5b807d2aac7451d4fa32d7fc439e80cd61e296dfbfcab3fb4fa286a797be40d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.40-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.40-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 09dbf777fddaa3d5e0f86df261126f8a26f33d3f7bdfb892dc003dcf8c8427f5
MD5 a0c599fcfc40b65b9d30b0341af3fa1b
BLAKE2b-256 a429ea964a03b5fce75bd706e5b98b934d9b2ab41799795445ea96eb6b0149fb

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.40-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.4.40-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e6a99de9ccd15b8a6d7242ab764d1e025b6438d435d478a58d7dbeb7791a2c9d
MD5 a045235e7599d908053b203665ce124c
BLAKE2b-256 a65f2245a3123c8302d795569de143ea4d58627964f89e352bf886f8ccbf7662

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.40-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d476fb74c8f0a396cb3a2f9582d4d1a99def91c09d47e879f0eb688c7124a4a5
MD5 2fec8c6793af589ea35c61751c27de55
BLAKE2b-256 4e23c6f2bf8077e51aded5a765858dedc9e9f38753f4dbbf31a2b3cb8ae16a4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.40-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.40-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 952fa86519a15e0f6582d10aa13519e3ae8993d2a0bec0f40e3b0e9c6e0e2abe
MD5 515833fd715d7c0dbd67643b57d2c6f9
BLAKE2b-256 8b1de566a3be5700779f8283d3c46ae4ca754fa134fe6e5cecc271e827d7c0ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.40-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.40-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0806deae8338dc198d79fa84ba15a0c76bc386c28455742e522290c91241427a
MD5 6f2fd2836e649ec58dcdac9e92fe7523
BLAKE2b-256 297f83bdd94a119634859e38f92b470e2f5d9bed6311866185677c6afbed0331

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.40-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.4.40-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5ce21d88b3994aeda85822f29d3337be1982257df50740d5d60828f03c320e95
MD5 526ef8f4322151b2a4e42aaef278a99b
BLAKE2b-256 5b75d64828947a71033cf043b3a5726ba9e7640ac2653496668e98656ba59c7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.40-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 70dd994849f7bd7f5f9068f24e83153ae8ca99787a20d46e5e6658ef5b86763a
MD5 c32bddd4fff2052f10b2c817b739ae28
BLAKE2b-256 ffd1a940efbc15d37645c186d3bf1dd6e8d4ff75941ac6aa1ea19193d6f3fd44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.40-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.40-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ee8853cff62ca445522cfce85e7216422cdf52961a2c3af068a69c3304657e89
MD5 83360a440e228311a161d3d0fdcfddeb
BLAKE2b-256 75beda6e861ffe0da45932f1986ec14f5c35b1a989c9db3c1680208d71844303

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.40-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.40-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 dc23751a882ff4aa25a1bf746f01be6c6f451ba27b6629db6ae49852a9a5f00d
MD5 e670022b2e810c9b22d6f89be3f0679b
BLAKE2b-256 e4c6c06a5c46d20f628b441a1f063b8c39471dbe2e10300c369d14da9b3039ae

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.40-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.4.40-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c8bcf941d895ca87a5d94ce1cf8c504ebc88d3a8daffbf2a82a64c25bd5894f7
MD5 8212daef075e908fe79fbeab96bac203
BLAKE2b-256 e0decc3e63b3dd3f7b6edfdb4e877a6798b5d8b3170695543f41ba730c47eb4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.40-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3484f984d2bb7a6847e7fc61977d43ed2abd640a0c6e3b248746580d87e058dc
MD5 a19d2d138f769b1749d3572b26129cb9
BLAKE2b-256 457e4448a615321ec973b054483aa0e5425d1e00c524b0b723e1f3f01e3fa9c8

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