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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.935-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.935-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.935-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.935-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dedf2c5d86b0b958462944a3027a72d3ce394377cedcaf713f795e14a3381714
MD5 99c6181e92fc037aa44f62dfc20d6f8e
BLAKE2b-256 cea19040acae4c5e4d85eb8c448e73ee9c57753b52e0a92762c7a91fd319f18d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.935-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.935-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 00e0017b6cf9e267b3d09d4d340105478a04bc1e82f77ed58173d3058e07caf2
MD5 12efaa9f88b2cd135983f70736dc99a5
BLAKE2b-256 b35ea011fed945a5e65268e2697b5577aa1dd8acd59e193c5f0bc57346444ec3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.935-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.935-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f4aa79e1a593506fd58bd8a29c5563d2b71fad60651ae0fd87999bc1bc47460c
MD5 0c0c3819a5e37519e485a8879338aeb4
BLAKE2b-256 612191776be7973179cecef3df462f7d42454cf9d9f70511452f4bd449259433

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.935-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb31f28d900ff74d7f62312c167e7c17178ea88bd9ad9454e2dc79984735b5df
MD5 14218276306558f3d22c531c27ee9b1a
BLAKE2b-256 a17f5a52318c91a7e4ab1f52af0b18006be06a381a1611db56d0951066b0a55c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.935-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b4da61185af21b7d5b335c8f2c97bdfbca421ae15a17e57edcbb8771dc12d6d8
MD5 a8f9d9d9c94559e9930137f66a18141c
BLAKE2b-256 2065cec46f233daa0e596fe6d296249bbea3adf5640969483ccdb07ee2adf77c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.935-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.935-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 34838a05368048e9fe397036345ccb730a8d0fe60e4d14f296eb1152052a44a8
MD5 2dcbba7ee19ab5b3963fc25f6570c73d
BLAKE2b-256 4a36cf91eeeeed2ef9849682a226a4e631b19622362b0e91700ad862694fc3d9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.935-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.935-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ce8c74827ff3eeee2891a1e48cd36678cde950c03dfe0b77ee941055fe998e19
MD5 40d46819c54f81099607ff4b8c4e850c
BLAKE2b-256 adf80e2cdd050ce80e22d3c51678b545730d6db5eec3a1ad0152fb23a353cc77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.935-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5ffef17fc6f2d15ebd9e3226fe16887f6840b309101c57312b4f2708be67f42c
MD5 b0a63080ff64dbe4c78c34e26a7d9b3d
BLAKE2b-256 099226cc62084e2c5fad503aea4166ac598bbf57760b65e58813af7c4c503782

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.935-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3a2e1606272678beb26a07259f4e4d97131da12a262b648b5ef675a3a2b4145d
MD5 44bae69a5b53d75ea478d085c2abde2f
BLAKE2b-256 30b53ec0fef8e449b92930da59c881f60f4640831780f517ace7873dd0bc58ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.935-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.935-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f7e195ab25af326a05394612e06815732999ab3cd670ecf5d67acb1f9205930b
MD5 f7530bab3c73235a2fe73e652ef405cf
BLAKE2b-256 88ae667f42afd9ca4b9d4f89da9be9d5cc8ad093688e9b979033423b165468fc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.935-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.935-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5a68a9e72723e46907304e6eaba3d7edc627cef51766043e644b5e8f1e628122
MD5 01365587ad55a96e42fb7eb45b836f47
BLAKE2b-256 a300777fd41b6506cb70d25c305b94dabfed9b6014ca56dacd72d35514ce9611

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.935-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b61697f2b54a3c5656e12f1411ed7d8f4797aaa8d7e66c08294d020be61705d
MD5 c5a0abe38311cb5106a69cd4dd420155
BLAKE2b-256 03487be49427722862cccd082931f7e5320912d3b93713da11aba063f30d6b9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.935-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.935-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 054473f42064eecfafc22805a74d710c9b17190537679c79e45b84dc5d46be13
MD5 674930fc838dba97ea4d9b0d2145bea9
BLAKE2b-256 aca61de8ce563401202381dfa4e590cf8298cc85091c0cd71b21a161ada0d804

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.935-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.935-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6ae40d326d8c9b6bcf292425deb4c2d2fa75b804e13bd493497f1c89cb5a662e
MD5 a71edb9277da394b946bd87d4f950592
BLAKE2b-256 1d4bf2fd27cb92b754140fa6dd070b1fb8bbf1000ac70c8a88f2ad2a5a2f34f8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.935-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.935-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aacd7328ab82b52a29a764fdd52ea5466569ffa9bdb391526086ef326c8eee6e
MD5 d6f5a131db0ef90caf7c5ad2e7d89502
BLAKE2b-256 1e8f3afbe17195d508d6dec00df742f4a6ac26e26be942d4fd420c0361ed8d73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.935-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d90eed8f380589e3c1b61f9283bfffd1bc8dc717c07753e30795f5f8064d7ea3
MD5 6d180752447b72bb7704ac067b9630b0
BLAKE2b-256 21e0d5fed7c0d4a99b2e1a66273a5a4e43974d3db90332a03406d40d17efe45e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.935-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.935-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2d96928d2b674a212298742c47094d0bbd3d1900a76c413ca12d125146de0c9c
MD5 1479b867945a9fef1842b3803bec5bd8
BLAKE2b-256 55e075c57bd0728405a2e59dcaee4f71cf9c9b5bf52b453badfae0093bfc002e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.935-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.935-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 10b4635de442e2978b4912889b3365557c11920aecf4bf015c5f95c0d2d48032
MD5 a414edf660fb50955f8e03faa3c77fe0
BLAKE2b-256 96c2a657e3c1b6f54fa4d147dcda38efb32e1ddd5ead1865d37692c2d2f30b67

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.935-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.935-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5c763100cd44d627807e34b98b489db6232561313e9ad25d64e1385427c8e6c2
MD5 67c6aecd7700a56de32482b59f79934e
BLAKE2b-256 63158a90ab7961852e60884871d9658e44a257b137775a0d8c68aff9ac9864aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.935-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3cd054a96db589a4f838ecfb62a1a56f9fa00e9809267d4047364680b69cc7d7
MD5 41ec41a475688403a96304c5cb276dca
BLAKE2b-256 64290b82d042cd19af8d0b81f8d50ca74f39ab328e0662feb13102d4048d21a1

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