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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.431-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.431-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.431-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.431-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a284b468d9438ec58b97b12732f9896716bc793c5c9a1e1deed632338402dfee
MD5 bcd27964f3c72df918b419f880d2bae6
BLAKE2b-256 a28497526eab87973e4d74955e41d9e0e0865a75f3cf98a3627dd0c244d49765

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.431-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.431-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 186d200f97a4974cbc580e83eb39c1ac7bc7019fdc516474b67cdb80e8350f77
MD5 14be7f8ac2c78a3e8670719214ffdcf7
BLAKE2b-256 8e321a61febdf999cebb142995ee8fd555b92031fe85c15f17c88608ce4020af

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.431-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.431-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5fb10c9fb4286a92e997d113343e51facdaa4ce1096329893ad26be3de8a0242
MD5 2c3e89bbc8364b124288a31f8b5b8b92
BLAKE2b-256 718909f713ae576460ae0e6e971bedb30c8ead9555296acc91b1aa1f34450405

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.431-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a2550a61c8b2dfe96165e6f3c3f0a8a8a3a705d4d9adc64f94e34ef4f449d275
MD5 2721b51bbabd2ec6695efdcbd77a9a01
BLAKE2b-256 c0248a80f4c91c3d65b3716b89a665e5a6597e2f7e4035613c95d01ec0942266

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.431-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5d37cd77362d0c556c711da019daa0f9eb6d62bed533c23d3110f17be4fe05f7
MD5 3e53150a2f80637ae9de7d9e1aaea876
BLAKE2b-256 187ce4060093cb5a37e226098506c89d4364b5a0ef9136845d713a738cc038ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.431-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.431-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 57f91c8d94566266e41a0495a2ffe95f3e86bddece44b80a1d06bbf04d6bf7d7
MD5 740eae73adca1fcb1c0fc6013b9fb87c
BLAKE2b-256 1db291137b6d58f41d7d0c396ee28ec5090a99e05645793471783b6dbcb4e7dc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.431-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.431-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 abd55c9370d1fffd0289c27d67a104c7e3aee319e9d3096aab75c8ddfc4ad122
MD5 6dc8714d164c4fa6bb7167dfc3da6d17
BLAKE2b-256 d794084c72e0dd5da697471324b1b8302dee1e72551cac807966ce4a0aeb8728

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.431-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a37bcf3d2de4fddf1d8a5ca9ab6c77217605618167c2d8f5c5fd26b3c2d27651
MD5 69a3ec0ec003ac5208f1f7c44aebc90a
BLAKE2b-256 93647fd89be957ec87535c928ac62421d17255c79ac21e38cfad70c8a7c4868b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.431-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 95350d50e84d16db0b12dbd9ff48e0631fdc39667e5182d0b456d04d211ac37b
MD5 a7271e0de8d627db2beb9899ca145ad3
BLAKE2b-256 2e921c9c3823e0d8ab260014f830760e5a90079ba4d99b086613208b30d7e278

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.431-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.431-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c4482d5b8ab0a791467c4a8068ab4694dde6cb1a57fe48da9ed1adc49c6fd330
MD5 555792c3824cf639368ee3b307e9a351
BLAKE2b-256 84d5cd50835c6ce7997bcd23c8340b9df71687974c00bd62d03a100e3adfb2e2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.431-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.431-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fe5be22283e7fa4d90d385201416472cb94647c6a4af982972508fcfc434e831
MD5 bb97589abedaf245b0627f80086c24ee
BLAKE2b-256 8b9274a858d8ad0c9cf1f4a08607569dd428f995bce8317487541f4e8d220d8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.431-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7de239d7c2ceb3205b26841c8a6f94964b5f9385ba55c66a082f35db97b0c16e
MD5 79c0d821ac6500be7f1752eb0045689d
BLAKE2b-256 5b84ad1574ba719a6cb6afe9a36d8e807f22189998344448a2e9fadf44ca521b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.431-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.431-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 892b7e9e5fac787b37430c20c2d7297d3d368b24ac70a0f3f030982cc9298dac
MD5 13cf79172ca5ed9faeb296be3e037b9f
BLAKE2b-256 17379de74e21aeaa96fc58b881a42c23de0f95014d42d86d474027bf83c16940

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.431-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.431-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 be267525b7932406ed70753ad95be29e0582194a1e3a7c5c0c38d8aab4ce0c04
MD5 763d0851e718268f5f408fe3a8c6e979
BLAKE2b-256 fc92f5afe44f69b9a02d40dd1084b346caa5f4e312f53f2bf2491d4461b58d58

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.431-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.431-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6cb6a35a6c49a3845ddfa44465c685708eab75adbe057e6f135f7387fbe97663
MD5 bdfa304e7c0fda59b25d84e595af6e4a
BLAKE2b-256 2c79621e33e3be78ac3584dee21046873d72d0e398725152612fb0709db65682

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.431-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d89a505992f03464c8035219e9d54a08189ae20f96e86d50bf78862be59f6fb6
MD5 108bb428d445e7ca64bedebb60850f71
BLAKE2b-256 7cc354e1ad7d61b2d8da600b890b33748ee9614cb4f9effb3175936627420a5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.431-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.431-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 51c6cac015dad8cda6ecc9cd291143fdbf8ede42c836ee34897cf33d8b3a7f8a
MD5 ba5331fc05365d853d66d4affeaad3c5
BLAKE2b-256 00652112cdbab44341c44938981474b1f60eb41d248d72f0f0dcaa6a034ed08a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.431-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.431-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 eb2a63fc4b6b1470391941a723870570131e50ef8409f971861eb29bceb8ea30
MD5 25e8ae138be19be6b2855791127c27e7
BLAKE2b-256 e4490c67b18490aac2921ee246ab3c1772c0aca6434f824772b74420087276ad

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.431-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.431-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1698d38cc3584c9deedb2be25cff828b28e32beb8a4d0c4ebe32203dfb292e87
MD5 d2f28cae77591ceed1e7b671cee3fe05
BLAKE2b-256 69c75827441f0c035549ed05815740f05b599b9568812eb5535388163c2479c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.431-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e383adabea6e0e31bd1451ec56ac017517a49d13dc65ffac90aa8ece7b0587c2
MD5 c260ea87d8e30fe336fb365e38b279f4
BLAKE2b-256 d2330b4bd77d0ec0514fc40bbf40829b3c91d058fc8720759cb80ef4d77b2402

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