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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.316-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.316-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.316-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.316-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1b517a67d8f78b576f6729b1edc8c2f9dc6279f6435cbbef45df47dc28947aba
MD5 88eb59c5eb74db70be6d4baa3735f471
BLAKE2b-256 052dd0c04d612f49310a45e78c5532a9f699c3a887c4256bd36f6e65465bba4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.316-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.316-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 37eeff3de9419e694ed20af774bc872411f5b6736401f1d916551be7918e5ab7
MD5 2e75dd285a0e1e5d7424fd2c753edd8b
BLAKE2b-256 bb47877ec7806c760cdca7f0f2a4c96e4c713398a61031e63753ef9ebf9cff30

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.316-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.316-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af1a3d62ef2b6ac851e32319b72492c9ab2790a3f6a39c7c9f696dfedbb43431
MD5 c270b5c0c827c10cbe093ffc0fe65aac
BLAKE2b-256 4d22b635237e8ed407cac2606717162ae7c9d50ce56e784ce42e440859c6b1d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.316-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc330288b91ca712808ccb1d9930dc27365a2904544543d904d3bca68b37acc3
MD5 91bcc91f69ea3ae6de44ab1a859caf67
BLAKE2b-256 e595c560b686d8ed5aa12b2ecc2f18a7e9eae9cf0adb19df5681810252396b53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.316-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ff6f7b8417a603a9b022f45ad2af173b2e5ec4a2946833a09c91a214dae9abcc
MD5 35b249b591cda6035d06e3e7b1f03e08
BLAKE2b-256 5816d2b5876a87260df03495a43e68348b6689d9d4ed569458b777540c8313de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.316-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.316-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2414caa19ece3aa337dd87c4ca4a1f17fad00b7c445e45632304bbcce8e1b1b3
MD5 f38b21fe6488926aa4b87a93e7a6264e
BLAKE2b-256 49cd7fcfb00a9fd665dd921f04a6b2d0e01aeaa5f0e3bec13ef6b11774de4fee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.316-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.316-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0ee7f68346b8b9584acaac234e4da43de19f08ac29ad5a8afe2746813578b98a
MD5 67e9f6747e57b72face9d871880f50c0
BLAKE2b-256 78e0bc0976e62c9c5f1757b17968c87897974ef5d50fa6b3cbeb4702d400a183

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.316-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e3be9b889797d6701b6a1cd8963690aa2a6e5e53eadf795bee69248823c25d75
MD5 f798e6e2d2a7aeb8ada3ffd8778e8d6d
BLAKE2b-256 4cea206105a2aa5cead2e60783d83cbbf8efbef9d06a4b1fe7096b8a7206edf4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.316-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 817b2ac33e981d83be92240ef08ece1e7d4f191dac9ae73b7cfa7f41e12ce459
MD5 af67c2a334c1b6d9ff4b151c3b33b608
BLAKE2b-256 8a40bea303d83c31fa7503d7983873001b4662ecba318a24cdc62d29d1e2d924

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.316-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.316-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 34a97dc67361d50ef852dfef2a409fedabad6948d29824f0accd4e045d268389
MD5 830f58c02efa99c5cbf58e6b99b7ff37
BLAKE2b-256 fd80fd2d994a7eada6d57a85294d277a34e4f99b3a8c90cf04d5d3c1b793bcb1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.316-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.316-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 75aad88782af7bc17273f68a037fb79e00ee89bedd05c6c5da003ddbe22b0a6d
MD5 af19cc5c0536dd6ffb4e28e81d29a560
BLAKE2b-256 56523b97b3ad8a5bd53c95d4610fb8d1c9772b35b65ac39f4b504afef6f668eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.316-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eddfd65a39a0adaac9c812345a6c0e2ce03ed856f86b7a9458d71e97e94f624e
MD5 bbb80ec386bad54364f7d917d019335b
BLAKE2b-256 18f28f91ec7e7fbfaf8a026c6cd64a9fa68ac497addc1c78628baab3d2b3ac09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.316-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.316-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c7a3f47ee0473acb61bdcefe4d5473717c4792b51b7c838eefb8c3820a61cd95
MD5 7bf7e8f1826f64b45b1ed9f40382741e
BLAKE2b-256 db928574c15339686a66b7c4554585b5c5429e7351657ee4b8717235e1e84806

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.316-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.316-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ee3f10e13e32b8d1fcf34cc947801b4b4d2da7085bc8dac75cf6d1b1db87958d
MD5 ca5f7feff4b3159165c1367a762ab7b7
BLAKE2b-256 ffc54b22e116624f8210494c073e712eb6a6c423a7402dc6860b0fca260d8951

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.316-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.316-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b3496858de2156ca52ab2a31836bd2e1c350caa1bffec53720fc7dc855961ca7
MD5 05c710e7303161d80255578240098b01
BLAKE2b-256 47d2df1741e288442193594f2db8e319f1e37e08a9ed150a1247a3d15cb553da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.316-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb54e9d3ce168a47e8248248c80ab646f41c78929fa042e00f84d557b07f191c
MD5 92736b53462c1973c6a4df514d573419
BLAKE2b-256 dbbfe80667a26891a0dc2b78ad1d00b71e7354759c1e2ec3c04dfaec012abd43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.316-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.316-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 16adbb9a5d88cd96ecf255b0bd7a7c990b23a6dfe50222788fa5f29096e815da
MD5 5690eafd2f78cf7d2bc5ccf6639704be
BLAKE2b-256 6428690c32a8f3d164a20b756859e47e811e95f7a47c682b637122592c69eaf0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.316-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.316-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 051a2537c07e991a445933a2435bafe15917cb760dc8f5e99e6929d84f31da4d
MD5 236a3199b6a5bf67f3ae9e2326f2e1ef
BLAKE2b-256 5ce1a15489282688b3d632f90d8b80c9bd832a1a8e045f736efd4eef36974160

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.316-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.316-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1995cc385f16620607cb24d264858de47d237ae29f17847a3ac5177c95c0a243
MD5 0c478cfb7365123e2718d66d5b30a127
BLAKE2b-256 cce28adce41d8b07e61733096263cca34ba2ed7a02894d576c360622b389bae4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.316-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 155b98fa389963a5f025cfe94af3336af238df43580da6c80a999c7d8945ecb9
MD5 404c47f54ed52d5c9e24c322c57e4b4d
BLAKE2b-256 c91322a648a4ec9a07dee684f6fc9772a7b5b471a5790662582c18aa8cdc0646

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