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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.841-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.841-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.841-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.841-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7eb8d0d2d65ad8fd4f4dc9019efb952c25aebb1f7beb7b94ade058d89e4d9806
MD5 81fbed3aeb21bdd2b37c2dcf0bbeef90
BLAKE2b-256 2ad29bf26c00166f4cdca6a873f16efef1688515d693ee9c94d3a1c51b80ba99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.841-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.841-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 012561ea1e434efbe032b13aad67a2b3114109bab6ab1e9e6e8ce49867fa45cf
MD5 9d9e2d46219ad2403b629836defdfe43
BLAKE2b-256 f0bfd25132ee64ddfa4339612c46ef3d338007e83866b9ad21cfbcc33eb292a9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.841-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.841-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5898caa36de88d2a4c5050ff8cb1ed27f82ac17789bbf081a8f1a2f3b6d0e57d
MD5 d6e67c5ac51c2aa1ec5c056ab404f984
BLAKE2b-256 72b3f7d26d9a01c5529e0d785919bbdac87597e1de039e3dcb81313c1b5fb527

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.841-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9824ffe64e9acb8a5145a4f53267862411f23c3d6f8385fe09e52eba71b7f856
MD5 e5815e1b8b84b8a29145c686acb108b2
BLAKE2b-256 d5e8c3d9440bb2ce1548702cdcab10ac10cf2e3fb835fbf9d665c1eeb54f0960

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.841-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0fc2d7f36ee876c16ca1b3ee9ee59aaf1262acb03b1b67abad72ea3f8c30272a
MD5 417485e1bde1afd2c40a33f809b0f226
BLAKE2b-256 746143cec6ea2cca5350d30ce52b97a4b400d3b92c204ffeb8713515f8d30743

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.841-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.841-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7e213404b0fe8b7e9d2faffbbf5c7e8690f9e03231ab2d3bc0e783b553d3fd74
MD5 2f6c89edd24c00176cbb8e4b0d3ae258
BLAKE2b-256 bb7a2d3165d91fd2945f319ee09b829d8fe7e76a1e8ab6e40a1882b0258aef23

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.841-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.841-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6c3b6ea34bdfbc9a39fd18526e052bf5eec04da1e8b2b357825da216fbf0bcc3
MD5 17572a903c1d4775e60f911f3a15a868
BLAKE2b-256 85aba13f1b6f291b69f6e4a11a6c7427b1cf822b73c017af453c25b301c1df8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.841-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e3e5bdb0159aea31f208b28338be4fef98c49addf32adccfbbaa15dc920d5e33
MD5 8d85ceb0b49d704665284d6a353f62c4
BLAKE2b-256 f0dadcc579aca868798111d926be8843fb67c0abd394abcce042721cd0064db0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.841-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 123306a107596289bcff891323735c2c8b7c5f6e532f01c7d64197961eaf1455
MD5 441b1d5b7122637d176551845fdc5361
BLAKE2b-256 4ba9c565d12417317cdb00631a32bc04e977f587f5636ee65d132c7b787bb37b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.841-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.841-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3137d3a5e363f5eaf6087695fd1561df8a917c7095e31646f794322528743522
MD5 6ae7515f9c5a9885670c4af0cb23f0d9
BLAKE2b-256 d600c7b123234b09f262149e5d802cf03d904dde25c299561c2719c4cd959094

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.841-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.841-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e8faca808deef49dbe5301da528a38bd9ab382476d9dcb41c502c174983794e8
MD5 0fa9defb527e915ad28aaeeb1612f089
BLAKE2b-256 de73e2d249fcd62ba0a216f2400e5170840f35cfd4e2b5bf5e5d4448c8e73cf6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.841-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 525ce097b7e18acfb960cb17ec306598d65bb0be8dc53ec38337ef17d3e156b7
MD5 52415ec888f49591929f3cbabbd03efd
BLAKE2b-256 c39e82f4fa599db8ca89e23812093c26a45853f17ccdbc1add25ded7c1badd97

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.841-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.841-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 305fd6c0ef5d8ad36d134440d4219027f077ebde8342f0fe13e3accb51d18ce2
MD5 3de9d78fb8c83816490bbac284928521
BLAKE2b-256 43743870e0328319068ec6878e2f8670fdc0e4ce1674d7a65d21431d78ed562f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.841-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.841-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 170350339fe9f2ce6d51186fdc1ee2d08cafffe4c5ee79f165496d74be24d5bf
MD5 44817aaf32697ffc088fd953de334e5b
BLAKE2b-256 0ec3fdec356c72aa13468ca70b6f43aabb0c84f72383a2afdf51a8705592b46c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.841-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.841-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 73930c361dfdbb7d567dacc4145e907f7be8c16c940647e35a09f832801cc302
MD5 e2adf7e5cdd068cb43393a31e738811f
BLAKE2b-256 6e991c83b12797b1b48ee10438712bbd873a87c806ebcb3479cef9e2c6fb5a4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.841-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee019d310498ea9a84b6a4925eb2a63a131d86cc4793a7c92582e2e4cede006a
MD5 7497b339a792d6b533108754a4237c5e
BLAKE2b-256 63f8c22fd3ad7b027fa87f837ef970a7f0bc1937f95a558801d42759e9d88af1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.841-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.841-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9472f99ed6308ef75a78745849ce2dec59381237b89449852eda99b9a7834074
MD5 803c45802a80f7eea472d8a48a3b880d
BLAKE2b-256 2fa0b0a9da0a5290f1437ac2a3286a4a8c0188ce8db1dace75a80d98c3bd5425

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.841-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.841-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f6033701a6b5e1cdeb9cebb3bdb76a8e809c433811313d5b5aa8c205597fffef
MD5 e79761d466fd8a4a006385d48a898e05
BLAKE2b-256 4d4fb16b0efb6d8a2dffcee126eda6a4d72279fc7fde9feb82744c74a0e0f2d3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.841-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.841-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f6509ca5a19f4032cbb3dd64203cfcaa0cf7f196f774aee583873c48efcb0628
MD5 d55b2d4352ea7418be235b1bc2252007
BLAKE2b-256 106d0c6749c9935ce5c6ba6e336331d0e8d17cdc7d5058be2d1edbb7ddf6ef1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.841-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5528d348c8dd9f0257bf1c7d4e7158dd0ef180168ba0039d600c453e2eed01af
MD5 5f5d56c3c61585b0e7413f345fd48ab2
BLAKE2b-256 22a450898252965940d503a6c9a2414f82795296cf94652160761e1c81225ddc

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