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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.192-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.192-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.192-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.192-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c5ff1816fa26cb8a4fcd3467ac50b3ffb5a808628fc5e54f5553843240fc71fe
MD5 966298d6e609231a88ae57ec2dd79829
BLAKE2b-256 c4267087fa416cb2b39a7a33db037eab7aecc186574b23e89e5a35d87e0fbb67

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.192-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.192-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 20183dcc9cdf48bf436a2a8954dde0c0706a239bb7464b7745c794321bce5a06
MD5 db7c3e05e64f4a1fb5e0157b067902da
BLAKE2b-256 6b958ebd107a941807081b5aed3bfeefb5fd28a8363ccfaa6d5cffcad8e84809

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.192-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.192-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 013e9164eb982b3840d4cef98dc6b60775a97909d27917637da4c0088a16c6cf
MD5 b767e7f52f55224eda320f1437ca8049
BLAKE2b-256 adcd6c9d330f1c72e0d0664420a9b11f54a7832d8d243589708ac3bf1398ac7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.192-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 91ab4d6fc72a84277fb67a3ada03e3850053475942aba46711a011b907a644b5
MD5 939a2f25aa46398e2c175e272d65d7fd
BLAKE2b-256 70b4ee1ed450725146e3b5a6694f11d4273f03769e521c1dd7b5936634e915d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.192-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 07cfbef4b15f8d99a8ddde978c1f80db85a87ce87d1b65917b45faf0089936a3
MD5 e956a66aa2b368a87c8ddcde60e6b1e5
BLAKE2b-256 14801de1361737a590f268ed598d38be3f9e11240161bf358bd01e5139c673b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.192-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.192-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 573284903f0a03018590c6f2d5da8233257c33481b051bc1aee4421ca22b0c8a
MD5 26f8f6856e8404ca529f6baf50d06a5b
BLAKE2b-256 b0918c4ec8b0228a8bc171e40d4abef39c40b1e4f1483d4950453df20295c1af

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.192-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.192-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c316174b474633e6d46f3861224b71955059d0f2fea4e194c9f4807ae73a67ae
MD5 85e3e4889d1ed5cb7166d146f0ccd0b0
BLAKE2b-256 8dd95a474e495a82291b9be1b134d543c59748e0461dae7d16e3662b0ad90f84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.192-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6701385294ae366b5b98e2ecdb31a9b0d10e63f5f0eb346e85993000a103f96f
MD5 c8f22fbb0ddaf93a2705145f30173b36
BLAKE2b-256 f5b4962120dc5f9ef49ff24d3a2ddde619278611748383c0ddf40c8fd59cf0cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.192-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cfa08358c9e8627860daaf6f15604d9a30f54da035bcf66507ce7e0023128389
MD5 4747f5144a27ae8e1c7f9e85ca8496b9
BLAKE2b-256 64ef65d3383a071cd0367fa11f648d5077bca2136fe28c3a9348d9ab1a866469

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.192-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.192-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 57ee0dcf28dd189e2f0d116797166ed9af151779e8425f0075a84267797115d3
MD5 7dfbd240994d238ef452d1eaa7bdf1c3
BLAKE2b-256 3dd969a46a81abd3f3e69af613fdb40ab4b7b54632cc91617f2d50ce563fb268

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.192-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.192-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 78727cd2f8d9cf36810813f54bb1f4d23b3fd34038eebe98f389c8373b7910fa
MD5 1564cfe53b206b6740d9e2dfb8b29d66
BLAKE2b-256 9b0b324a15776718b6f0f6bf25a3432aed72aa8c96dcd60ea57d4d3806210ea2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.192-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 72a0fbbb8cb89439a2595612b603c6274c603ee28c2dfb0a0d6d545c39c26b1b
MD5 dad87684e8b580f3fad63a7b4c6e041f
BLAKE2b-256 37a39d048baa4001902dec56d04a3a0fec1b9cc5267c7698e40b8d3d50159242

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.192-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.192-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 95ed491071cfa10e532d0af4b4bb79a8b9cc114576c186312691931ecf2dda09
MD5 d7bf6cc3258b58cf4cfd01f3088448a3
BLAKE2b-256 4a4d08200abf2f3cb5c9b6d10d556f3a2883c0fa35bb83010af982476ffa9690

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.192-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.192-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b36eaf2cd1549778a1218d1f161439dc4beffac9496fd6b669f818dbf5b05d39
MD5 3ca4080afa758302d0901b321f31d0be
BLAKE2b-256 3d0d4b5c19a21647cf38cacb1e40972299f8924c9b589748f34b9af9b1125de1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.192-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.192-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 993202a6f00e40a50dd617f8dc7cb49c90a4e6156beca2d5beba6cba0fbba7bd
MD5 4cc38fd1bff14b434bcaab0b413f66a1
BLAKE2b-256 cddd598cd7f93b8dcc2162946de35baa6dc46deaad2cb25ceb437df4cf3c5efe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.192-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a673b0d93c90ff144f6f1cbb861bf20a62bbfe16dc8a6b70a4003f25be692ddc
MD5 09311e215b0199ea38df5074b857b691
BLAKE2b-256 6424cc2b267760395e1878b8a5bec05909284c31d59729eb24e2a1f112b15a06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.192-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.192-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c91e892e20960889c78ad5535ad42086ad87687d19637f53e0aa2d2eaf79fde9
MD5 a822d7d83d3f596da611cd7e36e1d51b
BLAKE2b-256 0514e63668e87520679ef09becabd8abb79a8e216a75de6cb61a625a76c1f599

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.192-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.192-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 befae7f49e18c347104517ec93f74583be14a52bfbfd5238c51770e074fc7241
MD5 e691c6b7019360998b83b6c86e789f7a
BLAKE2b-256 ce33fefaabf209a7a494ed37429cbabe6db5880a8cce8edf9a807dfc31762f9e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.192-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.192-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2c890d829b49bf47ed15d1bbbd7f315a94ba8f82d0ea23a3a946cf70e04ecbca
MD5 43ac8d53c35d224ec81dd55a96264862
BLAKE2b-256 e8fdf61b4f7daef97a967732dfb825f71f86c3bd1e71ae5763772a14a06cf4a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.192-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 528a13336da49c9a14e3bfa8aa2312a613c941c8e69686c591d91f86181bed11
MD5 63dc0a2392a3eb344656735a20d1fa76
BLAKE2b-256 fb56f40710bb9623c96feb17a6c6828adacec36fddbab782ff35e89393a2e479

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