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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.146-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.146-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.146-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.146-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.146-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5bb8f8b0d3eaf9be8bea499efbb66ea4b9f90d5a89be6a85c2cb5d361a56926e
MD5 3cb8b7fe0258f5b76e0351398a57bd31
BLAKE2b-256 23ef8c332c4b0b07daa9d71791dcc515afa9cae2182175953344ef20b861d734

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.146-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.146-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b54a5ad2e95f8452a7e68568572a35b74b1bf43b14452790e3a22eb93f49052b
MD5 7e5e76d630ab896184c5eb699460be44
BLAKE2b-256 eee069a997d2f719386229338045bdcd8b19cad8ab60a6d92c0510bf7449c384

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.146-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.146-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f9c47a4cba915c3592e3c6e1988802d794869b83aa9f92477de2c65eb9da4a58
MD5 23d4133a9ca8214f3012cbf2c8f6c77e
BLAKE2b-256 70c2090cefbd65238b03e39e570987933178edab680076db6afaa5ec298ef8e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.146-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 050b71b2a8cfd345c8dda3827e6c613a25827adeca847f892bd3a00c3aa35b69
MD5 38cada01d28ab05ad78d6f62428aa864
BLAKE2b-256 3b7a3dc2d633dfcd7ef23e50107a34f2fe529961b17bb60e7336d3f89e908af0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.146-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cd6a59a6952d233d6e3f8dc827bba2814f81844ac853a2c65c8ca3dc30e567ba
MD5 8bb9a53085cd8a0586d4a80475f6519f
BLAKE2b-256 2a5fd7ce60a2b6c23d54ddefa59b2a5f7ea578dd2e71a47847b8cf196a9f683f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.146-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.146-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d43f5a15a6ff0a18753e2cbde532bdc7444c9187ba285c8283957f9c80d7e909
MD5 840c950afa15390ed553665f37b55244
BLAKE2b-256 7063c93d946517d01fef55195b351d696cf1b80e33779ea750e9023b0af99c23

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.146-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.146-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 365c3624bf52213490720a6dc32b7ff0419769aed1d075f4e5d9c13c7131a343
MD5 7ffcfeab20be3a787bafe9df0e403423
BLAKE2b-256 3d74614775ac629ee7cb14cb120397af41a2d932f69982dfc47b7bbea753e102

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.146-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9063e8fe901a84271ce08d6be309e71a8194dfa89f08be92262fb44a32595d23
MD5 4b925d6b22964abbc74c4c57ac4a3d0a
BLAKE2b-256 9af4d94b0ba9b19db7990a8163db415f00da6b5dc836a83bfaf38aed70dd1a37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.146-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dde7f3a23457be5e695a756566cf0e81b8110214923c4323b2d0cb8fd534d1bb
MD5 6796a95eed9751b67f26351653265744
BLAKE2b-256 15ca48ccf460d62cf6feb107caa0640c46eadf68e20db918977a6a207db2fb08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.146-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.146-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7fe38bcb8d317f4b6fcfbbbb608efd4bd7b3e9a7ffbbaf7141b7c221d7b75f52
MD5 ab0229b3338c8c225d3b2b0728c92e23
BLAKE2b-256 9563f2adc94a4d6b4476b19065955119b80151944acc3fdfc1a1aa9feb812d81

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.146-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.146-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fa3a9779bfb6e29570568437ccf2e2c4a8cc43b43663f7903d2dda806244311d
MD5 1782dda212e275bf8435fb74355c5770
BLAKE2b-256 70124b07fbcad481067491c5637965b5aa971b4ef208714b41baedc129bac2f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.146-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 60783ba3be5d1e80ca3fcd46b9e6d9ddda4f333a0c544556f200b7a1b8144f1b
MD5 dc0bf570f1812f555c913865300d0ece
BLAKE2b-256 6dcf5a7c4cec7a0a5241ea389f880597445842378238336b935f2de80538c20f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.146-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.146-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e4ef4bc5e7b70daea2cde774675136d8d5d917c67f4acf1f3ff698873a327deb
MD5 bc7abea456b28b609300e4d7943e148f
BLAKE2b-256 6700c6718e404e4fe4deb1c9a6e864567a96249c1c7651b448bd92f489fb7c1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.146-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.146-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b43054ff9ca3150494a22261f570d948978033a8be46d3089c807bcf0faefdea
MD5 51c0cdf93956ec85cdcdaeda3625ed78
BLAKE2b-256 589bda0f0fdc905f2cbce30099a11e2d0ed84a04d0c77f17f7e029d5b55ebca3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.146-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.146-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a594165c4adafac66bfd777637a8dc634c324d6d2af763665495d231c1b280b5
MD5 b3f01d766a62ac1bb1256c84e63de235
BLAKE2b-256 925de1ef3c7c0749c8e7360b6bd338d4b449f28b9c0825d356839eaf395b5c6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.146-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 13f062c970ba5da96f79c25b39906df1427da45d888534b2da60cd8f2e4d8197
MD5 92e3a882d5446ee0693c32648aeeffec
BLAKE2b-256 ffc0cb32c413dd163ede247b15e23b38927eb2acfc873cb2b17bbdde82e175c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.146-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.146-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e96264a06f65d6645d41ee87e17da24c96dc809b11d10f585e1f72aa2d25659e
MD5 cb19d021f377821a65a7c766f474c6d4
BLAKE2b-256 7a6a1481755324defa77722b3d1f57f984ce96f25c3b5857ecb6bbdc7c74dc8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.146-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.146-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a1fda00e037365f65033ff36da1e2ec9a7b8be95aa4774d628a94df3acc144f8
MD5 8f35e7ea6ff8c35583e47a6f871d75bf
BLAKE2b-256 c9a0429c329574e7c1ec86e55efa7196e907c2d0e27dd31c16b1fddb659607c5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.146-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.146-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e19250edd26ea1fcb1f255806d003248d5f4fa490d7e7745bb93c7d29fbad230
MD5 d970a714032682e4dc0dc4600d3e78f1
BLAKE2b-256 37c607b7c2dc616abb2191cd1889a8228afcacb687e246d24bad9d1fbdeeec16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.146-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94d5f82fed3d4eae71a07012a7e91affce2b3d9124ebd9a36218af855e568a92
MD5 6391ab5e2595926df145fa0ea43005f7
BLAKE2b-256 0c1ab8ac6ec602282145bcd250308b0ae6a5dfc77bec38d82e1d871e76cb9c2d

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