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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.4.30-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.30-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.4.30-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.30-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.4.30-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.30-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.4.30-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.30-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.4.30-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.30-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.30-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.30-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.30-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 917875570a1c997197722ab58573c6da55b9e91c29e0e4511e609efbb53e1568
MD5 c5c649434d6eac29194d46c6517796fd
BLAKE2b-256 39fa86a30f10ec86312e7dee1d89a780d2a2a324599b062e35655ca0e339908c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.30-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.30-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 bb9cbda48cd46f82441ae4177b3d008c01423f8ac6a41ce252c53905e762e801
MD5 1e4ff285ab14d23d119541403b3852c0
BLAKE2b-256 9af82a8839a974dee3bbb2b39e4f126b9fdec86bdb8ed3a75e381e09192190d7

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.30-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.30-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3ec490d6dbfdc072daf059277647b7e24f342a444575e8e5a5e6262228926c7d
MD5 0419e0bbb51742fbc7264a0af32ceff3
BLAKE2b-256 9fdb37fcfd6b6286a85f52306f628144fec91dbb903d53126c7fa35a48e3768d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.30-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d1f2d289fdd98b02579f741fb781a7ef360b81d95f9a2193a6ef273a508331c
MD5 6d4bad42edc8829440c9434f26b2a636
BLAKE2b-256 b782a41309c5ffa1db4a0850740908c38e7bbbbd22dac6734b57690eb74d3e67

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.30-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.30-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 121f77918c6188a56888a8dfa7ed2047e74bf6a1b87afd83f499ddcaa95a242b
MD5 6e4df44ef1ef523dbb7406459c79a341
BLAKE2b-256 0fc32a7e3842ee0d164b3279849645141eec936ad9607aeb38d014ccd6dcaa3d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.30-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.30-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 338ae6e3ef78e931b5334f684366788582d1971750598e1339540e6d522268ab
MD5 977924ce0c45637fdde2fb4770fd1df8
BLAKE2b-256 fe52a8bf56c250ac84c0e72d8987b6255c11b97bfb2865cc5a5db07c138e55e4

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.30-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.30-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ba708e46f8b314c1f2ea440bc07df302ea0d1321a258466cb3cd087c0440afd6
MD5 8317b16472bdfd68846c1229da3f5b01
BLAKE2b-256 4d5f99fd0b73f2d0e1f4e08cf6917715b64b505311ce5b1465e178a741620f3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.30-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f45cdaa85f20b611cc587db99817961f5b34fb578bf8a2a1bd7292c7d3469fb1
MD5 5976c18c73a056e43d843f9b328e80aa
BLAKE2b-256 d1e0a60d3ac7d2580eab674df59d206665c94104ebff176cde40f0dd12458830

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.30-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.30-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 224b909f703efb2fce2c3d18dcfeb65d32d32cee47de7717c7107331b50eafdd
MD5 6072532beaf7ed206ba14240f434ef40
BLAKE2b-256 9d9c1c4374422b49a647f4ac72d1f98638cf6ddd1f271896b40b9d7a935400c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.30-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.30-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 597184a54dbd9d8f0d90898bd8fc3aa5632c049c88f6b0de6e42ad9b1568e61b
MD5 1c235ae70e43f23227e073d527288e0f
BLAKE2b-256 62a6376577e68c53591c4f99db19d5bc7de2cb031b1dcff7a2a05f1e606b878f

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.30-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.30-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c875013dbd111cccc1eca41eb10fb67515313399fd7ff235b9715edfe9d035c0
MD5 b4673e64a07ad9c096e5164084d6fd87
BLAKE2b-256 48b8f82891eca9fdee3d0ac00500e0be60f5ce1ce11549f2742e6dfb41e1156f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.30-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7a425f93f88ac709d5ae0d5e8c08df0e3f0c83aed42fa454f551ba625961ef0
MD5 f467d579dd37e739cafd6d25d5afc3f8
BLAKE2b-256 f8131d492ed8fe8b8c5eecdf6d5dcbeac13e926fcef0ed48d1e8e981f65426b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.30-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.30-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9697cbd332aea3300b25e79f382196f0db489991973dd44f2d7af80d3bea9eec
MD5 a724a002e0518d295ed2170492f1352d
BLAKE2b-256 24338002fdcac52d1d5eb82f6069d21110a884437114878f38ed0c9303e08d64

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.30-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.30-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 63648bacd0413e09cf49ca19781d876cfedb6f3c05430b491940f8a0fb6ec2f8
MD5 53e0f94ed28ffa6b8f2d3c4e3be2d5b4
BLAKE2b-256 c976dd9e38fbcee62c5738947b44cdf94a3a7ed333e8f0b790fbfece253119ac

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.30-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.30-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fb9231a518a3e2f87194ae22f0d25a0e587720cc310d5faa1c22548fc58625fd
MD5 369b9b3f11c2d3019cc34febf12c5240
BLAKE2b-256 0c19911f2c2cabc2159dc96da50a5f5aad98c9ae5c0ea2a5d27d1eb58a1d89d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.30-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f610544048493f70555f7ebae603a8e5ef2404fdcd4609b8c51f9adeb1a0c243
MD5 1ca5c0ee89390f5e9d5fba78fb514d5c
BLAKE2b-256 e9a6aaf933c0c71290b1e2dc19226e2f240936cfd179cff7e4ed52c235adeba5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.30-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.30-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7b47a93b2afdc68c28e0f0573d9a379d99b6a3f56a3e4d94c372f929013f7293
MD5 b311dce3f4942a8118461cd7dea1f157
BLAKE2b-256 c9fc1c9f912c1e8ff4f02d6cdad7d6f77c1f9ea7ed8cb2be062738418ce6fdc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.30-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.30-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 59abdebc825841aba5d83871590c0158be734e05547f4f28cc80e825564d8ccb
MD5 67c03155e99f89753b0a7ded772b0d42
BLAKE2b-256 c3e2f36f9393dbe5676c13838783e88375e4c0fffd861f93f449c6c94f802f79

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.30-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.30-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7a36a28295a128f06d061fdf4470785f4a3eaab0bbb8a86472e42f5b6a31d993
MD5 86a885051a3a9205aa5f714279990249
BLAKE2b-256 8277e4cdeacb2a041ae4c9d1c6aedf286da42fa59626fc1274eba22428343d43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.30-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 57dc3915cffe7296a3f7cac15cce1f198c1bd3042bff05ec96b9470ead3242af
MD5 1803ea2bbbc7334586b82ba073d58cd9
BLAKE2b-256 a4320613c97b37966966f106ce76387e22e783867b5149ed56ba43a932b52cf9

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