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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.480-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.480-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.480-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.480-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e246f8159b0c87d4ef4a606d5e5c9cb90d6f8701cffb5169e3a242b12316cc3a
MD5 7fc243cd850a350b42e2522281e3f2e7
BLAKE2b-256 16f4e8721b98c89ee2698a07ad09b98ed23ce9d118f04b39e10747ed3aa2334e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.480-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.480-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 233253274cc7ba97e7ce9a43d7c3a471c16cde4f5247f10e4bea3e6df3b8b70e
MD5 9eb6103ba0e51388f96c9a500ac00f0e
BLAKE2b-256 f3392521a2cbbc01a9eb0549c65952b2d10148226ff374c61cf452047a7d09bb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.480-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.480-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6ddf2f521d7a79c3af7ff0f8f182a6be49d1f90209b834c4faae30116fb82faa
MD5 87bad5f14e887a499f02e0e6c30151e8
BLAKE2b-256 6c5bfd965ff41e5b2e40dc6df83f757edeb0c197a21d7731a8bdcaec26f63baf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.480-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bf65c6819d7a9a29300dcc0879d4ad05efadb1ccb243b6131262e04da77a3982
MD5 1114c58e9af4f672480b30549b604d4e
BLAKE2b-256 565d2b809c1a160c6f661ceaf52a47b7578a2bdca61d514b786bcfe13c888cc3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.480-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9198014ec2f9738b8b50afc37b92a913baa0fd5c83ff67d7915594fdfa65cd18
MD5 cf245230df9efc4aeaa2a653ef1ca8d9
BLAKE2b-256 0bb07ff8d18199480842504bc8af229aaf50c2ea20c8c18ff72dec4fb2134d32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.480-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.480-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 afb94789a7cb604fd68184b44154341842dd9e3713135923a6085c4dd73d6a63
MD5 1b68f4d69e39f13c4413ac406f41085e
BLAKE2b-256 380e792a94eb559579578b3ba2f40363755b5ea972ebe4497527ad94a2888aae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.480-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.480-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5eb44f28ffd5044eb88f5f797afc896b33f8e9511521ad5deeda8106f0a53b93
MD5 5c504c4c055757e92ac78ea92bd4a757
BLAKE2b-256 cde5ae6f2b12c1ddd962af5965e1615d45547b253cf9148652b2aa1dcbcd5c74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.480-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 00291b4e099f8b066606974ebe1f1ce6c007143a86aa35cc49431d81cea37409
MD5 4cc9eea9a50a3b70b05dc5f73952ed35
BLAKE2b-256 9da0cba8a409947c3389edaa03dbd9eca6a112962d36993d28fe3bf842ccc334

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.480-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 42ac3691d235e0b0cb5ff3b4c73a1188ad275c09b0c4cad91641c4602ddc0bc7
MD5 9badbe3cb5b132459355fa8a4cc9320f
BLAKE2b-256 4e53b4e85f621226e802934f30ec393e989be6bba5663b05b357822cfd971714

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.480-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.480-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 85e3a9d822b73167c9d3f88c15373f892bd1ecd71185b3dd5e61f8045e2ac8bc
MD5 a1ac9a6f2db2946122777a43fdf94870
BLAKE2b-256 88733807b9bbd191529fd87ec47ffdd2451c9ed1b3f96366d9246a45bedf33ca

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.480-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.480-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 071cbc9acbf44a2e24a9ce18eafed3ecc82c6296abf3341999ce06fe3f2aa61f
MD5 c45158cafda3304b8a02d12c1ce7e91e
BLAKE2b-256 2206f341609fff7339d158b84ac4153f81ce2a8ca9bbf7e7490d618fa25ae319

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.480-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 230d71db7cd775a9afa1b18c939d740fda69a734097167406f62071890120f70
MD5 2cdc944e8e4af591b3fbbc955b9c1187
BLAKE2b-256 aaabd5dbb5557c9775d786a44afdb72b398487293b7e4b9cbc497e8ba924d6f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.480-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.480-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 92675b56b0ce184e941f8661dc52ecba79aaf33caef9d1856c54f53b2d3ef0f2
MD5 5a805b78489cce72f72022aabc3ea45a
BLAKE2b-256 88eefd12510c321f20e40df5dd683a3e766a6835dbd002fcffd23fa8e66b78b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.480-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.480-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 215a846580e949721c1534be1d1963b94ef8edbd73d260cf2350b2ac5ed34912
MD5 be01911e67f04a5ecb95f35934a45250
BLAKE2b-256 fe0a7f1b345dc2762812b00f2f941ff5117d159a191d9c976f05a3da056e4b69

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.480-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.480-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 36ff70c68f1a99f4f770e6d9cd9c8d6dbd8e64102b1d7a8544e82ee0af626b38
MD5 ab03847dda0b3e5c925b9d3ebfdba8d4
BLAKE2b-256 d21ea0a2a5fe0760f0d41a3c05c9957529eb7e7b11d860bf2bd213d0b3d63413

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.480-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1219dca5188bec9ebf5b3e392ae869684c486478df842bf3bdf78d47c77d859
MD5 84be3c14600a60f39c7832c16ead573e
BLAKE2b-256 b20b8fd7758939862b4cc8c72de94338299a245eccf70f85e6b5d5c06181b660

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.480-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.480-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 32a2d29fbdbd8fe03f64d5efb2de7a4ffbc46108c3c2c3f5af3e3ee99c17c34d
MD5 c755384adde45a52a6ddc0d2154ce2c5
BLAKE2b-256 3fc14ce585795fda877895024c8af1065374b239522ffc1246a928738385231b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.480-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.480-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3cc2838184f33593e90d498649936006cf01e4bcdc63cc431d236fd2ee41d511
MD5 55ddad3aab1a994c170b12a67849ce7d
BLAKE2b-256 032e115a3fe3ac9a6f4c7e064a2917ddcfe9f6a09bd6a671cc1acaa2f7706b60

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.480-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.480-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 19b42630c06ce400f7a80750b29500916586ed3244205ee483163fd1ccf91339
MD5 18ca84f88cb21c703c3ce4bbdd1dbc1c
BLAKE2b-256 50729bdcce95927f71ab5dfb5b92ca32bcdba543a3267f1424aa07c71ca13dcd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.480-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0d9abcab1e33aeda9fa577e1b251f37c1c0a8a2b47a68a964c100f9a32ae891f
MD5 58985dd39f7725bc11808a73474f6f8f
BLAKE2b-256 5302b07b6ae6dc469426594731037fc91093d234609cb4f955dd305fdb35a675

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