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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.6-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.2 kB view details)

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

simple_equ-1.3.6-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.6-cp311-cp311-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.6-cp310-cp310-win_amd64.whl (117.5 kB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.6-cp39-cp39-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.6-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.6-cp39-cp39-macosx_11_0_arm64.whl (119.7 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.6-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.6-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.6-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.6-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.2 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.3.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c246fd7969a7405e42d9d8924e88353511d3077c850a83b4c949bfde8bb8449f
MD5 33fcf1b4fb718dc0bb317ff7d01056ca
BLAKE2b-256 aaa3451948fe46dbef73c31e2905bae67f86a490ecb3b6af1254c9ab57ca725e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.6-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.6-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0c961a4c3a62eef19f44ef6c0cad45dd1619ddc7e4d442fc84ca9b6a720b299e
MD5 fae357deb35a52d1a487d0626de6e130
BLAKE2b-256 557da73c3554484ed9883a304209225a04ca364650e9b437ce5e23be06670fa3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.6-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.6-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4853f4336a54c16958f6b0700deda3bad2442202c33c4c718347c0c16eebb8d7
MD5 66ea21af11a4d2b4db794e69449fcc3e
BLAKE2b-256 da1fe3f33aa4151311842dd9a9ef9a62c250ca4d483b6ab07305b9e655e24acb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c7189203d23b4a567397a822c8a0b8560eab4cd42bc5e511a4140f47c71940c
MD5 d1df7844c7ad6de61de11f2f4f6d01ac
BLAKE2b-256 8984eda525ec2639245f4f6bd893e556584495efe7c4bad237146c4c28fe0b67

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.6-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8c77f275dbba66d3a40b10663c36303de3e320411f92ccbb1f678844030ea3f6
MD5 6fb870a7896bab3d01e16d5c2b937ed1
BLAKE2b-256 8f0c20bb1d83453dccafd3399a268317244f1578168253d5ed6bb5c9ef1464ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.6-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.6-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c13a87cfe2a4a599cf17dd3758e6d557a3bf266afe70431fe6d6a636b50deed5
MD5 cdbe59aea5b87e096bb97146f299d898
BLAKE2b-256 93d297559b76612d392fac0de05fcd886767161156c39b0caefac8280ea1c7e1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.6-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.6-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2d403c797e7076b0f0a707363dd0a205ba818638daea8caec8802f2790034760
MD5 9fbfd025330ea9ff095eeb24d8d11aba
BLAKE2b-256 c5faccf6e0c8ac2e1de906c4c9b4d19c7c5c8d58c199e249dfab049a180b7ec0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b03109f100079ccf97ee2c49926e5af37a5b9916d80decf5288285ad3661bb28
MD5 4a4ab5b544d6a9817f11321b7074475c
BLAKE2b-256 fc6c7e73d18af4cd29406e9705f9b74912ff14f9fc8cacf8fe6e38a05c06fdf3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.6-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.5 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.3.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d27b1081282ee4eb70c1f9a4ca5e9482f0b0a7117a16ce6662f4c6040fd722f7
MD5 8088b65a14d60b080487217c32bebf4d
BLAKE2b-256 5d9ef0da4e6f7c8d8197dbffcc6dda6a9d8a7181fea65b67597be69dbd955a38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.6-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.6-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 67f88c64fc5e6451a338a1442aa2a3b7df534a2437a8638e49e7a9bb0037712e
MD5 c3a0b4f173fb491a496797da5c7da5fb
BLAKE2b-256 38db6af05687e5417bf22f3e9839f5694e790b57c0b92cdf74c830cf1aa61f7c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.6-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.6-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bf48c5de3fa79d8a2446a994108e5f2ae40bb11a71067213af38b54117e7c41d
MD5 1ecb08b53a2de1fdb51cf026f08a5eb1
BLAKE2b-256 3571dc6bdc9ff555894cb0a2cd6c92f2891b601f5f99e9fc661cc6e8e3eec2c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b239ef2eef1c8ada7b3890a7772acefccc6e42fc00d6080b03f17a9510023d3
MD5 1c1cf4bc2fa624a2591845ae9b0ebcb7
BLAKE2b-256 065cedc7383a96f49604e19c86d5391a553ccd7d717875f6596faf0ad444dccf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.6-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.6-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d624019e42a59ba38d30657a7a7d91e8efcc1a7f60523584024bb803f2b77007
MD5 130060577c65d29f452f104056ed441d
BLAKE2b-256 3385aeee8da90950f0217a634f7b29a5b4591183cf1bd541c54cb87ce30fb0c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.6-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.6-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 fb97fce5304aad04fe1fcf10b466e490c76f3ed6c3ef9b8e750496d86c3dc21b
MD5 dca1fe65d0a4fee4d5c638d996b4b53d
BLAKE2b-256 a819dfb894f8a55dcf36c0b6f6b128e124d82cda17bbbbd7796191a8544438f7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.6-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.6-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2ad7dd6d8453b9f24aecd852519c20acfb77daf58a0eae252b42a2f805af7fef
MD5 40edd3d45b03fb143316ac65fd33b9f0
BLAKE2b-256 f6a819af7830c98f4e595ee244339d9fcc3c48e8852fecfdf55c42c46a8f5a2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.6-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a9ab38a63c19b4b82804a10a1f227c5b60edf838996c5c8d0fd6aff825155212
MD5 b81c73f8224dceb88a9dfc8e7978c52c
BLAKE2b-256 3fc002f213db1c4fa6f66fa8194322c2a9bce996417bc79bb0b375d369379e4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.6-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.6-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0dd5ced288a57f2bbadd8e2b5f563ad1b42106dbe5d373abebfcbb7e0de256c2
MD5 925116db12a5ce0f1b3c73c0a99b229a
BLAKE2b-256 b07478a5702f52f115d9f8dfbe2796f6f8e9d735301477e51cad41e77de90048

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.6-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.6-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6a0785337a16dd690e6ccd18e05d32add2d4724ac00c947752dc34b240ce94a9
MD5 8ec2a039df8d74076f48b16c483a9b2f
BLAKE2b-256 8dd3abc1dee6bc6eca70ac7f09650edc92e67142d18bbb1818ab88169f71bf79

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.6-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.6-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7e5d66f8d68d1fb56eb785a9b52203b7830bca973936b6d4810f2372b94c5b77
MD5 10fed9c8a36e84cf1074480d617bdc27
BLAKE2b-256 a1bfabeeb5198b2143a020075fe25b8f651921911e77dec2d20099458e8f130e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.6-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 77ec4c31def1c65fc51c1ab6f18418c183d7a4b2c989de33cf87f70e0fdb0e4f
MD5 29977f39972c41fa13ba2eb9cd9267b1
BLAKE2b-256 d526441849752cdbade9e576b34f269070ac196868901afa0ce602dae6ed3313

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