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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.930-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.930-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.930-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.930-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7198ad9fcccbc6f72447585608c2de81f4b485be890449ceb98b2758b523bcae
MD5 6ba15931919966ef5176c1ef88d63e68
BLAKE2b-256 21076eb9b6125519cb571fa2cb0c581629325f8dc1b419e8cd817483d5310961

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.930-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.930-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 87cd09df7a6fe3f68b44511d7b3f6706a097397fd1433aff48a2499c070e3dcd
MD5 fd41aadf99e62e631ede6ca9076a988c
BLAKE2b-256 5468d32ecc990dbe1ae778bcf3e800b94ffbe9ffeeb64c8a86f9e70df2cdacf1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.930-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.930-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b5e98cd6e64814231f9ca34837a6548f271234f210556d973c14a7fec4c904b7
MD5 9dd61d80a0eecc2d27c9f995a7406503
BLAKE2b-256 1546c0686e0924abcd8dcd1dafbc65fdb6990d88760acd0c3405d6bfa5f6328f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.930-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 667ef7197313a3f1f27d1ebaecf0ea0cf99d72d84ab0ad701eec56509d484003
MD5 9125ec733b72719ad16e57f66438dd5f
BLAKE2b-256 2fe9c1411f8e3ca2dad1b82a960b5829dfbef205abfc1025f1c91593d242d73d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.930-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4874715a53d370ab832fdfb951079ba6a399921597682737b01344ac86027aa5
MD5 5d5691eb02a947cbacfa88d1a4460e15
BLAKE2b-256 c161b2cfca05e89af15872194fc9abebea9752250a638bc8da5b0df57a291d22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.930-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.930-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 bd50b50a7fb893b2145fe980266159a7499b707171d87594cdecd13f21e045b2
MD5 99cf59c18f37f36c331f4afb874ecf2d
BLAKE2b-256 8e53029d254a8a78a1e18b0ee54e2f6c0712b8dd6bcc82379ebb69bf2d5d6a3e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.930-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.930-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 75cc3b094f54dce8383d6cea3c8ae973690681e3fd006581263822c3b7e4defd
MD5 d4b4ce550090cf761060d8332a129385
BLAKE2b-256 4a01ba8ad193f99b3365f9d76f7a8953283380fd48eb4fd4e55790e6307abf31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.930-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d166ef2b0d7147f1f4023391c3c962e1969289d7e0055ccf9227456947ef3846
MD5 08a44b86d7b33864d19726431fb360b8
BLAKE2b-256 3a591f93d31322532069105b52b35231f2fdb0581abbeb8aef509c250aa3a464

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.930-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b54f8c1fbe6928cd56b57bc72c27354193cb18eb2e8691c903ecd41a2e014cbf
MD5 5126d676d80a81343be3042898b475bd
BLAKE2b-256 db0e8808ed9eea3b2a3ba3a51709d1f062a167880a8241724e9407784c03d3f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.930-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.930-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d19e40b8c53803d41feeec557d5aba1259002a705de9177f27a31f631ea38de9
MD5 b17f39ec9308a6999fe6fc7774ba13f2
BLAKE2b-256 ea4dcd68d101b7788cdcb2263ad2faee4960aa95a843dae127a0039fa691c42e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.930-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.930-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6818f640bb782a2fae802bf9809c471276da497482add83b6efeb72587bb13ba
MD5 de9377163fa47c1eaecbc2c523b21f3d
BLAKE2b-256 2cb14ce63104728154fc321c3eab2f8541e6a9060832edb6936b4377ea6f1a52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.930-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9cea296ab33d26b6f154c7bd454155d9147e472af3f9f7c84487e0c8b4e4f311
MD5 9b619d8bc47a6b97a01fbc0e18907d81
BLAKE2b-256 ae2ae15382c056385a22afaec175198490ced5e73230ef3de7018385d2e1ad97

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.930-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.930-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4aa936c24d82d6a1a52875c41dbf1c6e6ff0f11f63b0101a8df50bf05103922c
MD5 28df1ab75366e8d739349835f3fa2739
BLAKE2b-256 9179b3f504f266f5a0881fd7f446a2b952bded58d7591c28cc207648a35ec02a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.930-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.930-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5a8a1a0c0f83a69f6b0707cf2a6b21427135b9dbd1f8143ffd07c312f49ba918
MD5 28edbdd04adc2b98b227b1c7607c8314
BLAKE2b-256 24f31d75d5f7a82a3a5b7254ec6188836b422b5e3a3a5b7965c9fb12966b1845

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.930-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.930-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 94d4dd68665a3c4409bda7bd6ac88c8216c88d34d87324de5a6ca847dd9aa3b6
MD5 9c8dcbe1409e3043de7f29ac325b0724
BLAKE2b-256 7f9fb9f9fb6ecc0f6e78acfb423097cb238be98ca392ee9883e9b660df310b91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.930-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 745ae5f5eb1f483a8bbca407613e34712274c4d94613a58c28dc5e409a534230
MD5 8b7fbb5c134f6b69fbcef0ed8033782b
BLAKE2b-256 4bc46e9d9228349a008b0e6cdf0ac32a52f0935b3a25c1b8702abb52e7149f34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.930-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.930-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 28928ed726fa26d1db46a76b29b27988f03c40319ab0d9f844c1b732a3e707d2
MD5 ec6fa71c4b381ff325d49b3582bba0c1
BLAKE2b-256 81f30f3f9e5112c4847616ceb0c4e5324582c9a359d9004b9818a40bbce90638

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.930-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.930-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ba83f0695f10bb3787af7a7100ab1b08c7d53453da38282a3ed6bd6bc88a6e0f
MD5 b3956ebc21d8397e002226f4e6d32d51
BLAKE2b-256 14e0e3d7701d5ede23be52263004a2e6dedc9ace699015db8333df2da29363d6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.930-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.930-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a98eb3d157dcf22e963888665df7438b75b089707e675fa80cf2044d0b1decab
MD5 a0db8412d61376ce1f318914b978143d
BLAKE2b-256 93e45d020831866571e1d68f235dd4da8a44ec126b80e0a9a63cd8b154d411f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.930-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 51162cc71b608667fe0efb498b3bf87aff1d2b76dacb32d7ac2a4b1724bdf755
MD5 83dcc1de748cff853dd7283876c16196
BLAKE2b-256 798321c989bd370e79fcc7e36029461f0877e4b709a88823bef22d30048923ce

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