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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.89-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.89-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.89-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.89-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.89-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.89-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.89-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3c0d6eb71f865608307ef2357c2c822f0b479aba3d721e3af86d70c3f587e887
MD5 530c35201a6b8c87146ce7e8149935dd
BLAKE2b-256 2e051ecd6a77844cf6213cdc611fce4faf1b730569d4abb5e9ddce8cd40bc2e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.89-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.89-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 84e424c2181c6c359be935ba8f1e2de3d41fa24dd9e36943f346488df156681b
MD5 a947c6574d9dd205fbfff4ec344e80fd
BLAKE2b-256 225048dba081d23121c59e0936fb882d25ecb752f8390e49ee41057c4247e28b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.89-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.89-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2154288e71bcd8deff2102a98f7c3487b876ea47eff6129df0973646747588d1
MD5 d37e1940e8495e1bd1365e7ae176b889
BLAKE2b-256 3c28719816456e2b6f1bd6b11baa5a1722173da78fbceac684495f59f646f0b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.89-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cae730a74c0153699ff390e171d57df87bccbfddd87659d129cc83e8ec143b11
MD5 7cb4b2a31e373bbe8d868d328ecba697
BLAKE2b-256 182cdbdb70b91a5e001e353099463e275f5a3b087263095c16a0ec84a8fc30ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.89-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.89-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b320b93cda8073ab495f26ca6ae45d2a2b3eaa7a50d3f1b61df338b7caec2c16
MD5 c48033efcd2017053c281dc4252e455e
BLAKE2b-256 2bd9e23667374eb5af06f4b3c8846356b50302b8eb92ceabe849ef2803711c54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.89-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.89-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d72e22347d8373b64499d680bf36e88d4a33dc9045927ddb3c810aee21150839
MD5 b9d57a71773f3e85e7091293aaf235da
BLAKE2b-256 527edfb8d1b433753af243aff2a1e3d60ed2cd899f615693da525b68459e4fd8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.89-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.89-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 15a2c261a8e73a72220127e6a73d4b5f73bb6b86285983eab2042294efa8cad8
MD5 90fa3cb0e65a3591c064ce8cf1d2aa60
BLAKE2b-256 e10b6d5189fbf9bee84cefbfb1a9494dea9286192dc85a8a483cec2208ff8900

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.89-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dd297e9b6d49b03cae0bfddf816afff9d4d87b8ee174b5696c03d80878f73fed
MD5 b45f42acac4fc0437243635631d77585
BLAKE2b-256 afb3220fb5e08b11ef24b3324e14081ecc229f708b2f3b8a89dc15451ba3f4f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.89-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.89-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c1beef14e1d8089f89f092de07dbdb6ccc3b637f2864b2c7788cb1349fa946ed
MD5 ce5a5bc528fe2f8cd198f4a2ff532485
BLAKE2b-256 aeeec5e9e2cd9fbd83f4036d05a0c108f2ec6999084f4dbbf8ee8a3074de4a5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.89-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.89-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 130f9ef7f2230b41c50ccb847787b8bbd1baccbcb7ae7c4f01657175b9880bd4
MD5 4c762935d0d83b1d39c29f5d845830f0
BLAKE2b-256 bc485297eaca63d031595876ebf7d407dc4abaf06e3f9a4956097e749905a6b9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.89-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.89-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c136c130b4c02482fe8df90e4a0eba35f8e81b9fa55f35f8cb41e9d23ddc867e
MD5 fe183f7fb6e21c04c181ec7955bb2512
BLAKE2b-256 5d7a9523a8e99fcb49cd5f0f45e0e2571f1bea1c03f9ca98049f8acbb2d61bc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.89-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1095a66b7a102d3deb1a34f7cf93b6490f4643efedac4977f59dfebe1fd6d759
MD5 2381ca40e8dcb803a2c56d0440bf0333
BLAKE2b-256 abeedac3e6ce05089f3d162113a2104ca3415d297454e3c62e144eecf6546387

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.89-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.89-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e1a0abddba896516248c6b7affb1303a3ecfb98f6724588e4160915ca2102d81
MD5 2693d287832b0829b67574ce5b16efc8
BLAKE2b-256 2a9dfe361f36c828e519f35b8cc586b7c42822c41e061737af97ff199adaf480

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.89-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.89-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4f7de8ca09eb9be49247afe6f11f9748b6b81770da21217680f6f549413ce6a7
MD5 ebedba27a3c3869350d02e6106800514
BLAKE2b-256 52c63d6d59ca0d958a261d1fb22ea2dd6f628095be623c110bb61904f3381db5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.89-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.89-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 661816a300ee43f416876607aa325852dbe0ce2906e4e45d8d4bd8db314ed428
MD5 6e6f60dbfc92ce6599fbad0bf98318b7
BLAKE2b-256 dd88e3c7499839526a16565fee1a412c7e80da264fa49a886acfa0bca2f947a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.89-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82eb427bd28421092436426b7a20f9f4e88b5e42d1841e394196a1cfb4e492a4
MD5 126296cf749efa6c66f7c4ae08f3d6d2
BLAKE2b-256 15925341541500f5433810ce5144e9bd6dd0a8a676d3c90bed023d5f67422e79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.89-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.89-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 208296adacab59c00cea4938c26f249a177e5785295b4722cd2e91a8367c4e66
MD5 743e8de5a835cadb87502a9b5b57a6d2
BLAKE2b-256 cba2e2dfecb0c0fb1d1a8d58f0c7fd2383109d574a1bd855c40f56dd46e0387a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.89-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.89-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4f26f1c9a667ef406f1d132ab9780187c86ffbbf491489f65a5ddb44c92e50f8
MD5 9e995fff8db67850a5645c9703972fea
BLAKE2b-256 ed1d7a5228272b1ee37703050ce7164d1a1bc80626a0d3d9937a4421bc5d6cf8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.89-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.89-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e7931fa0909732faf9e73e043da797916bfdcce71a3152f32da344a36e7a0ec9
MD5 1948d817679a7382d2df359da4c04c9a
BLAKE2b-256 51baf12aaa765546c57ad747cacbf1a9db854b653b93ef3b161814940d51ccb0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.89-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 93704b1ae75af959860f9448c7b777ed02069c29f5f29c8c552a06a570725ba3
MD5 a89371cdd14854030107e71b8f7da68c
BLAKE2b-256 d9a23f0e4c51bf9a4627d81c33f313ebdc03643c9f4d259142050a65528bfa9b

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