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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.515-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.515-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.515-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.515-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 abd58e4cf3ca30b53cd8016d76e4cd05c49e1a132766cbc491c9c9ca26a78f36
MD5 92e45fd68ca3499222c5e6f243e1e4c8
BLAKE2b-256 9d25c0d0cc61f869641205bfe297584eb5847f1072fad0fbb3cdfff0ad2b9b26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.515-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.515-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 773d30016b152aabf1677ac241c763426731698bd2d94ef15769d80478f66bde
MD5 ee550f107748a9378f2673737f32d227
BLAKE2b-256 26538d297c20cdc03febd50a62282bc2f60c87e7642a682ad43aea411fab02e2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.515-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.515-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c5b024e068e4a400b3a5356e4137df742ca6961fe8666517e242a36dcef699c5
MD5 0705487a297ae537372d549579eb8d65
BLAKE2b-256 081724f73b2d033f57e1f354e5d437c7b90fb9b4f456bcb80b13c8455b877f3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.515-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3eaaed2df229a1cd4e509688a8260fce9c0657e4be7984db8afcd28306bb2f48
MD5 0bd5a651ddeb1f3ad211447f4aed162c
BLAKE2b-256 17c106ff5337909e24e7acc84e8966b7c1805f53de117afc60ec169266147aa7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.515-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1e4d7492494012164c241bf861849ff7ca3aae91d6f96f556796abbfd79d19e3
MD5 7d79e4635aed5fec06e6c75de0f1e659
BLAKE2b-256 70a17261e366d2534729f3c24b79ca9652bc7bfb44a01d470878788b99180fb0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.515-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.515-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d73a20a7e4f0d9d6ce654f93055bba1239e72684fc8617b529804215298743df
MD5 9cbeb0c356acfae6e69ee333c4a84390
BLAKE2b-256 938bdbb7090c9fc0e120280fa1edc77d7c2eb6ee1b690fda68506bd04f966f68

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.515-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.515-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d63d863a3b930f4f56247bb9eb2627a3a97fe1d984dadb019412dfe4497895c0
MD5 fa5cc99b744c48b105a81c38978cc874
BLAKE2b-256 9eb7819d2747f8e72b88ce94ac25e4912dd8e084893e9d654d9f599df5f15c84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.515-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e60f6b696a06c7d5e368285abe9f248a7d70d34dfe5615e2a4d44177bbccf2b
MD5 5441ab5a7195a2ca9a2a8f1ac99f0e9d
BLAKE2b-256 4d4c1063b0579bc45bc6dcf9c6e3dd678019cc9d11f79c06ceef93a27df954fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.515-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 875ff69ed5f11ac63ebdf970c0fbbaa9b09679ca624aca9e8e3d636dc1666c84
MD5 f7b4d635b0a3e3eb34770290d36a086b
BLAKE2b-256 3d44d1bc8aa801c39c17a42c199ba71b7b28f6e60caa61d13c3443f2a6f8681a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.515-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.515-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0826ca1d4f873c5bf0d293ff9212073512bebcf2ce30c1c57bc3f5131ab69286
MD5 7f2b4f0fb29af472664c22cf49751e9f
BLAKE2b-256 e55f6a648c1bb848181545450593dba362ce8e228975119e4594aadd80aac54d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.515-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.515-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3ba576dacd1bf1eb1ee8b610c204311ee0fdcc171663cbd7bc95f30beefc356b
MD5 7fb32b8494ed4dadb18d7f5d865fee12
BLAKE2b-256 e46d187a60c31de29077150562d0e04e865e0819a38b9264f2a328ba72c02f29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.515-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5d82abdcb6dfb0f23147c792d79eb10a27593840b62d9addb576c8764e3d90a4
MD5 211d528a229727d4e173db325b6be986
BLAKE2b-256 3a439b45d10e10aace7cf7cb979b9bd8d95297e57866786e21c6f75bfbf7d648

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.515-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.515-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d5c6a436daffc5c3c111cb7ed4deac35dd0c566ae107c9532a73893cf0170944
MD5 56c9daa0e8834666a692073327cbbe0c
BLAKE2b-256 b37cbd913abef978be685a3ed58728f80be9c95f16843945d572a57663c3bbb1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.515-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.515-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1dda93ad5fd8befee4e4903520bd19d4fe6807272525b527ca9965d0f43cf768
MD5 160438d38c8d038734d5c35a3c4d8fc1
BLAKE2b-256 21d8ad2b6abe5e2ad44fa318c332ad6edc3386a46b63107a54e57ee6839715ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.515-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.515-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 80177f7dee68faaa2408fe6015337a1f27ff7dae6247ab2dff4347627a0d178f
MD5 0baeecc822deff342b6e479b7818bc6d
BLAKE2b-256 a368c0a8e0102ca5163870dc0c0b3829f124aa233a843d7a1f4c763ba63cec24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.515-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4a43b76c33d31b076828ebab612f42e5833a413a87153e405759de0818a4930e
MD5 ae92f21e7d3f79d049bb464de849050e
BLAKE2b-256 b735e922665946a56b3ef7938d8b2eaa602c44754e8e1baa931ef3cf399470bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.515-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.515-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a117ddd0f63ffb82a628a7c4c07978a3e8d9be575189d82880723e3c4f3bbe69
MD5 2e9ca392a52951bbd946eebed907a73f
BLAKE2b-256 73a22785480d5d04ec4e52f46f20819bcca9c0fcdb0c57c76e3fe5b375fd05ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.515-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.515-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7e026155d025b38a77507ec0527ef6c905547366682bd69fa1294b20535df752
MD5 a1bb75ca7887b54b744ee9249d569984
BLAKE2b-256 92fff7613b7d366b2b79eb4683397b9570994be84ccd451a3cce14bcb754db14

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.515-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.515-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 da33ab0d834ebbe851762cb6d536a2b8c104f9c1d614a3b431e8252507de9470
MD5 27f13d4269900da24fd00181b29a0af0
BLAKE2b-256 425e3520578311ec03976cdcb00424412f395bee1d45310fb34f60a192d2fc9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.515-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dec0892e37db3651d3b23ef636079694f1032f5ba1f1cc8ffc105ed272289f75
MD5 7a025c48ac6cbb82d2dd22a55826b37e
BLAKE2b-256 27253dc2d3f2491c474c4bf49724737bc6f0bcf4584bffa4b6a5ba130517c190

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