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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.850-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.850-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.850-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.850-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 21d1ee1d65d704fa86d8efce14045a8b110f74ea51af45f8565d67cfcd86fb8b
MD5 5a183e7afd13a15ec57285ac0b61650d
BLAKE2b-256 f2e12711d5af932546da3956039a7c42b1aadb60c765b9da84c23482e9c7da58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.850-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.850-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 13bb1037fbea41061fcef4b30144eb9f9de14cee9f42e9ba8fe9e28ae03f71b6
MD5 83162315f46c5854b67aa6e6e1c66fef
BLAKE2b-256 7ada3128ba9d4813d846c010765cda261a280febec920816ff71f8cbeb9d87cc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.850-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.850-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5982b7aa21c0abf1a69e7069268a69f7f6fd8fcf0a445ea95c8abc537697fd38
MD5 1c7c02f68100c3efc39a50eef26f0904
BLAKE2b-256 cc183a0adee0973188ffd8941acd67615f63ca12d66b2b95c88b8357c829f983

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.850-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b5c2d03bb615fb189b4fc18cf09d24a60f05638878918501a6964bbe88d5bd9e
MD5 5ba3b1930f56e4a59fd6de23cbfe8dfc
BLAKE2b-256 c51543321ce3ebfe79e89228c831dc93fd444fdc34dad20334baeafeb5531eb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.850-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 40a4bcffd9d088bcf0081347cab8dba6c8bb676bdbda55aeb706f2ccac3097bd
MD5 87d9f45ef55f7a710f5a13775110b5b0
BLAKE2b-256 723bde8bf9efef4d9d34add44d8a7cf880329ae62e26a3b817cdec393abc7225

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.850-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.850-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 66f4f28a4fa33a0158ee5edf5245f4c35df7af2654140bcccf1db497e86a3c29
MD5 7d5e15135a8875d262db8a54bbe8374a
BLAKE2b-256 b6e1a751dbd3e285537bbd4b64948e1729cf8fc78c0f49092b56d28ffe2e0ec6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.850-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.850-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 069155e2cbb9746a74517700c01e7535ab290ae299d31c8375f4fe912b937edd
MD5 c5276913fda2545f7c60f2870482948f
BLAKE2b-256 4581e091b79053aab2f23598d00025bc16e173ed3f116d7af42691b62d0915be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.850-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5d8340d372c4581379f40ab38000b6589b184a7e2eadfab9cf5e4e6e8f49d3bb
MD5 fdfffacf7dd42a25e5477670690cbac3
BLAKE2b-256 81b223328c6b4c306f5ff297c2a32be48dffa685e69c14f8ef296868756cbc59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.850-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 aa346405b4c2fb3febc211773af197b9c7b0fffbb7176fa4f356999dc27091c2
MD5 a7b3ed66628fe03cf8468264ba4908f4
BLAKE2b-256 19773611fdd986a2a32cd361bd635a23f833a94ec3470e3318b30adf2de227a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.850-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.850-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5d94fc17610053e62a3d44bdfb9d87d3b817be390152d618bd9294714855af06
MD5 5e1a6bedac493d8e0a2004d2598ff43f
BLAKE2b-256 841cf819f647dd2b7a833c8f8f5c25ef11e42ada3053f0eaaae3a8c65ccec2c1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.850-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.850-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 68fc5c84e3aad7a4d737cd4d5d8cd694bdd03c525d7cf8032ac114a9bee1f779
MD5 ee25aa18b63f2a63bf82151aa71bfdd8
BLAKE2b-256 dab1827bfa532567d67dced5afa53f67c5531eb518c095b265d0259f7fbf5fb0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.850-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 25bd5d954707fed960445ec2cc8dcf2235d5c7733f5ded75ba9980ae3c760079
MD5 692f1c2d1903b242300395a8b2527972
BLAKE2b-256 c3b4f17c732fe0b40647e67d007bf69a491a4f3a1dcaf3d45259452e16e68aa1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.850-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.850-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5cdce4450917c5ba56445e77e932ee5113976cb1a804095633456599eba1e432
MD5 68cc62c16f799ace0532289c85655aae
BLAKE2b-256 00aa4b4d6bc9fc203d32689f1a2fc0aec8f0dca67b37efbb9467a6289513f0e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.850-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.850-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c5340df64052d01a5a0f36a7010a056f8f2eb9b0e0e4e282043517e86f014c78
MD5 bd09738e224c6c7405e8814083a1b627
BLAKE2b-256 01ad18994d191c084c5bcdb953a861f230eb5ea26a10c481c23be5cdf7fe84cb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.850-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.850-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8f49c5cfc4e4a98e512a4145c242842cb695ddafab01c1060599926ce93dd40b
MD5 8d7ece0710e72b4304b7dcf7bcb5557a
BLAKE2b-256 ab1282b961f03ad3fe84bc7a7a233cb6e0cb34f649cad851a9042ddeee6c2e54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.850-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 db9e6225c06edae85aa71c4dfd51117bb22ee8da11788526599b00911df5222b
MD5 bfa64eecf682fa383fbc5a65ec542d35
BLAKE2b-256 71f3d0ac5da657fc0824a00bdcba860458cb5e8a2690f1f1515c681c11197a86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.850-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.850-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b8fd390ebf390d6bf8f9d9e8510827ce7410eb407758818e79b180708ffa5bd7
MD5 4866cecbc5cb6af5a63ccceac2315cbd
BLAKE2b-256 cafe63e0a2cd9d6ef7c88ea0ec7f3f78deb9682cf9eba59a5b1b9100119e2185

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.850-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.850-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c58db29029a5e9b3142104d9cd74bd5e47e2df73a581458749dd28976beb79eb
MD5 7815f3f54076af822d062dd6367fb152
BLAKE2b-256 2982867d7643a2cc5d4db8142574933cf533c12ed033140f996eba72f8b91183

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.850-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.850-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b6dd9cfc3a09a1947d3aeb5b4a22236590cc96b6c95440922658237f7468cded
MD5 cdadc5cd8cd0c98da21f3a5f8c2028d5
BLAKE2b-256 033529c26271fac6236313603c91ab0f588c571756379aba98148c49b1d65145

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.850-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b73b7eedff6186a553c7257f9da9a760ba4bdc32bc573046cd3b278258c5777e
MD5 c977853760607996c881bf1daf99b556
BLAKE2b-256 1ffe21a3d1973ee54e294640c9c15d22f698593d13df4ef3409bea2b5b6c2048

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