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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.556-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.556-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.556-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.556-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a7fad5c32bce00f1f7210ec0a1aa8f07ed4e15de7e4b4de8259cd8aa9a13da35
MD5 fb0e6c016e0ca18f14dff4dc3434f6b5
BLAKE2b-256 68a49bef0726b7ae358a1cbbb70393a98e56704184a4f718e04845cf292d6d91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.556-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.556-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b70006f90b029bded805dab9c578218e404c59dc2272cc8074cfab6a1eaff081
MD5 e200bb2069300ae134a910bd4bbe7111
BLAKE2b-256 42137b61f3b77909ac4828a2d594cd95648dce16c2544e24f356d7559c5c3d01

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.556-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.556-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1f28a3984203952f2d90e53acb169dee959a46e1be4b291ecee3a76a3fac6f94
MD5 754273e57dc467f2aebdb990b81b7306
BLAKE2b-256 0c339ab62e3fbb08d6c7d9d8f74ccaf5c04a8a0fe376cf4ae3aa34e2cf02e2c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.556-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d6a11a8ea870660ebc1dc6464242f85dec220887fa2f8e1670ae73246f0d524
MD5 edd9b0ad1da5ea3796db5e68ee7d58f5
BLAKE2b-256 2a159382c03c8e30f31f3eaa20aa787b8633a4e35923a8a77a2396b38c259bf3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.556-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e674b1ecbf1a650d91b5b0641d36d31b58d4aa7c4d269308b51ef32b934c8384
MD5 fb1f1c1e978339973816261d9ea2a291
BLAKE2b-256 3aca9d1db81e6ec24e5031c2ee9c9032710dbf7f3b15513a1eab30d2c5904205

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.556-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.556-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ca62710bde85e08b1064d9effe32418f3d712596b3716752e107cd2561c7924a
MD5 6ed389436999b793b797d33771d3df4a
BLAKE2b-256 7d012abd1f77545d7009045a55f82262b0ad996534524d98a957438d456ff3cb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.556-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.556-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a78a2c7a3f6315156cf5b719a0d34c187fed0f4f4eeb1d75c1d0a4c195e0a53b
MD5 fea378981313baae0bbd9f8cb422e292
BLAKE2b-256 939cf66fa4b41a7595a8cf9cea483c3458864f47fc8cdfacdf51c666f6a9ed49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.556-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 99fafaa3534c5f32ebc3587a6e37861cb6b895f2c84e26274d373bcbee614a2e
MD5 397b41c08efabd8875f7feebf78fd219
BLAKE2b-256 52d76fbb0f80bfd6753537d345a5eb0b03cf97e77edb78f57bf51c55c45fb117

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.556-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a894171c96e6a7f5940c9f369d2ef0c3989484f3b9bd80b7828ea574292c50df
MD5 d2b3c4a7cd7524f1fd90738081ca2476
BLAKE2b-256 c42e87715e730c411f421b0e6fbdd76c106d366aff636d0831f569be82a9249f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.556-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.556-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0bc70dbdbdd7b581493bd6f01ede91c604b131155989e97c8350da62f20c1e68
MD5 c6d632ee53316c1d55e3d19225938e7b
BLAKE2b-256 2fbc350672cb3342c3fed38311395689bcdcf586dc9094ab6b021caa22aef6e4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.556-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.556-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8a0aef81b4439af973b7bcba1f0213b331d1700f781d13f33aa716824ec68019
MD5 57ca8dcdc0b898c162e45677b9986fbf
BLAKE2b-256 979bb4e6050ea0aec15323773748ee31976820c34e97a395ca31d15fef184540

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.556-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd962e5f7329fcf932efcc9808aaa59cae5fc09297a8b3dd0f838871fbf8ff3a
MD5 c90bfadc6bb3285f2a69bee71d67d579
BLAKE2b-256 6b136a9330541e27366a66dfdaa3d567f4202f74224d5e1cb663ea15736e8738

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.556-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.556-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b0cd8cbe1239a0c60d80400f33da1d5e4929bf279d890c933ef2fd96b98560ae
MD5 251402002c92333b8e4cbfe592ee662e
BLAKE2b-256 24d3b60aef5c2c5082e3cd1144ba00a125ac0b072a904e0a0fafbbb13b8269bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.556-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.556-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 825fe41f8b0de8f1779eb50d4f6962c3fbee41109e318bc11a6ff13f65f682ba
MD5 7a8d134c45b91094880f438057bb3806
BLAKE2b-256 414da1b6e9254cd3014cbd8793f5d67847168a950a4f1a303e2bb1d3aeb90996

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.556-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.556-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b52e9ac3b501a4a182865d32892ebbcc67862ac76ab79ba0ec3a0634eb013fd4
MD5 0d57cd837afb94f98b6cf440cd49323f
BLAKE2b-256 02912ac1eeeba1851ec973614bba00f7633ae78be7eaabd1f18d5cf2f859a6e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.556-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 728edffc263238057fef71688f9b363fac555d311ba39a5a40160a1af0f69283
MD5 726c1395e83a033cc46af58a0fc3bfde
BLAKE2b-256 c5086bb57d76ddc2c7a3da220d109cf6405325057df4aa82878cd2a98106943e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.556-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.556-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ea79ea94fa0335d79afef617c229fea4f63c05fc2fac6fe0d6743e298108e2af
MD5 28a636391a9f452b1ee01cf235cc2cd9
BLAKE2b-256 e5b8b063c53ad6c5acd6c98e2fd7c6b3b7a5613af6255f62b7af8b809f25b782

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.556-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.556-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fbf27c9e339aa3622d967e406507b395559af26ab811fb4912889a857722a307
MD5 2d7077c964bce9081797a93ebb8087b0
BLAKE2b-256 f8f0c6cd9a6038c9d9f7da3010093af4c56127e3ec2647ee807ec2801c9524e8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.556-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.556-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d208a62b113c404279c9153a955e23f817d59befbc7492dc79fd9879230ce164
MD5 5583c365afefd44dcfb71571e3656a37
BLAKE2b-256 ba3f052d88279c59e97aa627530dfc101802710a1030a0c04f7d21d2ef7be9c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.556-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9fb1d815a88d2419759b11ef665091d9126d786701d9d19bc980853e4dbb0a00
MD5 6891665f61be0b9fcd42e4aaad7f7281
BLAKE2b-256 caee037f923e3eb0745e900a56071f9d407026eb5a55593ccebe05b5dfb478ba

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