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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.294-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.294-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.294-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.294-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9683e6af637b403e7de7bb240bedee198e850a7931325640bdc8b0b8b7150251
MD5 49eedf596b0129c19f05ba40a6e96caa
BLAKE2b-256 cb815c9cf4c061bbce6d09065820d31f2309aa702762665fe76b3f47c5052153

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.294-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.294-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1545e840039126871934cfae77484fdf4ce6c4cf7436bfe64ecc0b09dc4d5da8
MD5 a55d502870e51dc4b2e884cc66941b48
BLAKE2b-256 1ac81c58c0a013b4a2fd5cf3b8d32d30f2cf4fc04d6fbc6f982533e2bd292b7a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.294-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.294-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b11b7c7e92866dbbe997cd8baaef1e49a9e08b9b54ede5c0fad1aaf8fff1160d
MD5 a0404cc4601ecaeea61f4c088b062cc3
BLAKE2b-256 338fa1522c4591f9e1b7413014da0873e49871295c30af6d679c20a3ca9c07ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.294-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 19d016b55002fe6cf3d6d49fd1d07ca4eb304e318eef79424f2c931d76a8c5cc
MD5 8fb764d2321a0a81b846ef57d89e038e
BLAKE2b-256 5103c612b13263742fc4e948176bc74fb58265b8bcfb763801b315962fef0056

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.294-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7d7bbebc5157d9a322a634b2619124d702aba8548c3065d1bc011aa788aead82
MD5 2dec7deaaa8a3bf85346105a51aac1d6
BLAKE2b-256 e581ad1c6ea7c98785b03bcf347b049362ce1b6b4fad91afdfba1ac70076559f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.294-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.294-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4ed6895daada7afe9b328231956ac854e611fdfe67c55d32834615baf1a7ff6a
MD5 ff3fdf6add9b269aa024cf4fdd6aa5a8
BLAKE2b-256 5f0d0e439c30a3093945bd46553836ec5d133ea5414abd396e6b3b8801b1d96b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.294-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.294-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f643f641d75b0bb9efcd85818bc396379ca3eac5d0e98460e9643fabb007630f
MD5 a57ae139fc577c533926f15886e1f6d0
BLAKE2b-256 e31dba56da5a8ec0f2db7efcc2fca22d6f8465b93fbccbee69e9002c61c88d36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.294-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5ab229c667964ae55d62771e31c8b4508a7e15ddfad0400669ed626e5f0f301
MD5 88d0a59fb5b222f262b8ebbaa7b0a908
BLAKE2b-256 394052f3618da8fc3c4fb020b1da7e96cdd0677a70e06cd51c7506ab4b5bbdb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.294-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 94339f7d0c39d592ad33a241716747714a0aab15f71af3f77f6ab3be12759b9c
MD5 43f537c3bbc613c7b2050b07e78d0ffd
BLAKE2b-256 9e17b9ca08df2fae4cb4d7dfbe062051ee564d1b92bb5ac776acc9b936550c8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.294-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.294-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3d36de85a52e3714c7af3532cf1d322ce2408fef2e601c434b23e64ed7e80fbb
MD5 ef3e94b899442cc6b905397fcf418b24
BLAKE2b-256 940930ea3a9ebd65f13051ae146c4394996a03f08022b8f8213837e0450521ed

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.294-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.294-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0fe9bdb1df722cb6f91af748e59d3e4917296c8846bb6448d8134704355fab1c
MD5 aed65136f99828ff71860f10f15d0996
BLAKE2b-256 3ae7e1243f7f8705e439b918d04ab39428e8f779102b30a229f3bc124c53b49a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.294-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 41dc3bff953e27a664962d1bab4ec8dd3a21249e190eb40966251c9f6ad757a0
MD5 2fcbd1c7b21724ccf71dfd12bf66eb88
BLAKE2b-256 26242fc6742c6f290fa76e600693122c1b9272ab87aa633ee7829360a60b43e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.294-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.294-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a5b208d4a1d146deaed0547c13b3299264ecbd3c93a433b5faedeb3d96d8f8fb
MD5 e60a33d87b2e76365abc53c029e586b6
BLAKE2b-256 bbad6a2f3930e7aaeb355c7dbff17135f5fb9606848d86eb5dceb25eb2e99e75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.294-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.294-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f453d3935caecc50d214df893d5275f6b395cf6ff0944df71ccb260d886448fd
MD5 493d1c50b22afe0db5a294e8962590c5
BLAKE2b-256 aa2b54a9a308b1f640399203455fb4ffac48ac265071604a670934f1dde6b973

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.294-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.294-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7059da4f6e96b049b738912f58e4a35d7efebc8ccb0f568b292f174080605553
MD5 e5c0ccd13988d6de8e50fd727e13bea6
BLAKE2b-256 b81ce4c77d4c86e62e15fd5a211e5dd9bb35c0e24b5584d8b6ded8ce9e6d5004

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.294-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ace3f2d343854bc7b0e5691fd695a7400668645f495d0e4d4a3b216c1aee7483
MD5 74cc13d4970d9fe6a2b44c2b0630826c
BLAKE2b-256 922cd261c1691c629cf7bd460e078c1dcd1ae05d15391224f57ea6b8e6b0c03e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.294-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.294-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fec2b90f67ffa946525e9d6998bdf4b12c2d3407d1ef4e3b7881e21c2682a99e
MD5 4ca4325238e8c2247d13ac44cd0ebec9
BLAKE2b-256 f0f82ecaa67bb8b9dec1b4cd969484bfc7ecc9d01dc8976788421c06013540eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.294-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.294-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6b162fedd2d5fc85cdadac3482e1e93b62e4b4d77da887dcea54a1b900b9b59c
MD5 1fa3e834865eb0825fbc7ad359c431ae
BLAKE2b-256 5853a4a77a6f6eb0f6901dda09b9bf969a83fed6d462a27615dad1fe5f018ea4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.294-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.294-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 695a1599229aa7feb8f5c6a76a7d424ffb5470e3b7c3cf071ef951bbb9418ebf
MD5 10a35e5abc36a45bc863b6efd77addc1
BLAKE2b-256 3d5bee844707ad3cbe2fd0a668b85c0f7d59c76ced301f1d808d17ee60e329bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.294-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ef86a33c6262107b0a2b58fb364870d785160538cd08dd36c4ce6157e916fcaf
MD5 c7a015af2a51257239feead714f2d1d7
BLAKE2b-256 8b266e4de5678e6b7a2e6c9bee09e999bbde27dc1422413696745e5038af70bb

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