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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.274-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.274-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.274-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.274-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 742db463c23ee98d80d2151844d848818c763bed7c43657b901f85269e4cdf9e
MD5 09b148a322f3063914dcdbe8e7b8c7bd
BLAKE2b-256 46f9416f0a9cf4818a77c2532004a0a5c4c04e9ca12832449edf9e39b65de4ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.274-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.274-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 fa90fab0c3e9c441578ec98952821d12b6effa867c8c146fbc5cdb1a0fb9b1db
MD5 d3e3619b5220048d9ee268bb4fd1abf4
BLAKE2b-256 1de3eb0c16419b78db49d7c8eff1fd1eb14c7186553f75464d56cec0dc78c82b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.274-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.274-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a567b00bab67b0e4f2ff1b81b39c8325d1cd4ede082ff7d414b8242d3076eb7c
MD5 a45b93fb99f1dcc71d64e68e76f1452b
BLAKE2b-256 a95e5cc9a8c235b86c46e225f5a936d6ccaba9622f881332033df6ca0d067b10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.274-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 55b23d42d2fcededb8de423652b9d137ea62eb49ff0a7a02d5bc86092e5e0c9e
MD5 0b6f15972ff1e80d9b79852ae00981a4
BLAKE2b-256 1753951ce63cdbb759f4003e4adc1f1e124481ec9be78e4c8cbb3d2f5babf050

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.274-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c42bd0f8ca36af69e9a501cb19ea4949914a8c41f1932cb56cdfbb373aedabb6
MD5 226a68d2bc584d35812426b698293313
BLAKE2b-256 4f59d4c62d217f3b1a4d290191f628ce596229480acf9be0a8ceb697f774d745

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.274-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.274-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 51d21712182129737516c30eabf37be2db3fc36e12aff0e7bd660ca8e32ef2b8
MD5 7221ef552fa7e58b394e4c0801d4d662
BLAKE2b-256 49c4cb375a8842c80443776d51127bdcd02c242344532fa16afdd3554857564f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.274-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.274-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 74c355551b89aba7dd0036e92295669107d6791ddfb19158a1d26cf1065492bc
MD5 ba612f05b20ad3ae6a50d060acb46d35
BLAKE2b-256 acc2d71c0d870690cbe70dbc6f7f53614f593aa1a7d40a06af315494d2edaa13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.274-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1de7cada38374c1dad7700cb13b58a8f05589b1e4b44386a04f25d90bae51e6d
MD5 907ebbf3f1cdf9bec4fa15209ffb5953
BLAKE2b-256 bcb24f25f0af486a6c7caa803b075932ed49293b2ed4e7a3b9e6c016c0fae5eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.274-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 54937d19fc7ac80aa9ae4e62fa12b039f6f12ddc329b990385e2328a252a9e13
MD5 2eac293300b6c332669a9ccb82fa6fc3
BLAKE2b-256 31ec388f391df8066f439dc5f3cd14f2143e3e5b892d15b78cf9526ddbe6d302

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.274-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.274-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b7440e3ee790655b2f631b3c068fd0a4acb45edfa992250225a7f9c2b144b045
MD5 dd0a42e3e71707ed98532e5573f25d47
BLAKE2b-256 25235a3f310d064dfa43e1e45d7d2d649f74efaca982adc68e679119816c11d7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.274-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.274-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 89f7a66b102ed1429f24321b27f8fac9ce57c22a24b8c26596db7bb9d8475eae
MD5 38425f0c0ac8fd5d41ef135126ef0cfe
BLAKE2b-256 f17e7b3eaae1c7cf530a09baa4ec70786a262b742d689735df2d47eeba960887

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.274-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b528917a572fe634c081eacb548621b967aaca86edfd4c52515becf92cd1cd36
MD5 0dff047d04123f0742b66a4fed02bb52
BLAKE2b-256 3414cf8df42717cf493ce77b75d6f6878d003006ab8c115ad2c5eab6a8914a96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.274-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.274-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f942ed9d647310f44a427dd63710cd38cfb3aa25fad5d876c361181a66b542ad
MD5 90bb0fcb9b7fcf427ff93ecec9f7043a
BLAKE2b-256 dd31cb86c55a20f182d94167f982c2dd1e5dc27f55af46945a76d48f02a55057

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.274-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.274-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3a2e2d3fd3193f9e9d297570022aa0adefc08230649915dc2c53723f429b3e2d
MD5 ce365cabc81f3868ce594e65e8adc330
BLAKE2b-256 101def477b32cdbdac36ab72c9d70b589f8e08d5518774a351cee96c581d7a1e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.274-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.274-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 da2b704a9c0f691077e35e2bab9a4268014e0c5d1e9d6614185b5d6d4e0d120e
MD5 cb84bceb55f423e8fa55627b7280378e
BLAKE2b-256 561932ce903986c7ec092a718aa6464b7ba8e54dc83b20d63eb4f4471883fb60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.274-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d45a4b9eb3713245bee7c10373b21733121668398e30fd87f8f7884059a70788
MD5 9f0a65e7039ba0411a95f75645b29f66
BLAKE2b-256 d0728cf302c5ba3425f8a1a613bc562e75ec8557212980b325b956ad8653dce0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.274-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.274-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b3fd87f6c38d8c8f9052f25238aaba32ac7653d021ec65d911895b333ce85bb6
MD5 86793ea1a635b9bf13d4f894a106f199
BLAKE2b-256 b8e71d579d82799cb26c7c1902402397f800d9cc6285b9a5345bbf82234c2fb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.274-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.274-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 497b02fcdf22bf868e35427a40688f4d65f8eff161961c10329a369b4d5d1116
MD5 e969533ad0fa2de4ef835b904d1d4022
BLAKE2b-256 ceefeb58dace3e4b176465e68fea33d0fe0797510fe39146a04df6024d482031

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.274-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.274-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bcf41b8d0a7869dc6ca6ad7ff69460a8ebf7fee753fb8ef67cdeb1de3e7ae603
MD5 ef95526e3a61f82e2717e9b85f760001
BLAKE2b-256 0cbea5666113b8183ae0654a40e2c3d2c261f9d7c4bb9629ac5bc2d822883e22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.274-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b85ed9a4cf88af46145283927a842871ecb7248ae3c0e70a661f6d029269fde
MD5 4727d1c8e8da5fd8af16304bc08c9649
BLAKE2b-256 b3d249256ccd925f07875334e6ee1167a292b4877a95cda321d641cb94b0828f

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