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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.584-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.584-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.584-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.584-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2e0c1112227c211b26bb0761b9dcb8ffc8f08732c3e47fd0bf6cd7629e44ffca
MD5 9d19f30ada2ad0667aca09a94f487371
BLAKE2b-256 71f12565485f4f8cdd80094771b812aa3deee4e50b9b99b8c1b482a840740359

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.584-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.584-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 076b59cdff30bc18d508b4d0154f97f4ebc2262211805d20e7f92bce36ff07bf
MD5 c34b201e4d36a4b8b46f4e3313a57d99
BLAKE2b-256 c537cda18cc4bd250a2dbc3bf9569975bc4051a1fa56a45e058ec68d8b1213b6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.584-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.584-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 472a5ce830663e5cb210bf88d878ba2d50f85bc4bffebf3290fffb234a91c578
MD5 607e777f8f094f0f4b5ebc679bc630b7
BLAKE2b-256 a06f8ae26136c8523c150dc43f03a31c5c205e700f26b17a7e0b47ddf5b22201

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.584-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 24534ec8621d146a70ccc081774f61b38faf21055fcf9205d543c5789f571462
MD5 d7d5fc8ee4a3b6693cd6e6c0fc3ceea3
BLAKE2b-256 b90131514fe87c466615190f53dbc80c4f649e4f737ede3eb0ffce8a009ace31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.584-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9541a787dadc153172c147902f473c858aacff8724535f3d483c13c81ae7b737
MD5 266449253da92409fa18e2ce2ab54c0c
BLAKE2b-256 a727b62f0550f5979a3d8c6ea1df6563364dff5f69c8770343fa0caa3a220398

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.584-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.584-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1faa21701107e1e4851a3ace298b3bbe2551865a48f675e4738c61ce1676f32a
MD5 f2daf74274d9d122e8a90dc4913650b3
BLAKE2b-256 de93b08962b75aa698642ddeeafab978e4dd734f70b1b842d08e7e3412fc9761

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.584-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.584-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7af9eb217ed232b7f1392613bb91f35c5e5aaa30739fd4ad01ad283098d3c50d
MD5 cc1548d5720ef40123a6eb2a3648f2b4
BLAKE2b-256 c31b94032e15db45ae4ec4956dd844d038ed7f5ecad426d802927f7241cb803f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.584-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8afe5b073e76996646b5ef894d2a5a9d60020f1be982ac94cf9baf7dc38b5d58
MD5 4d41902d746e6d183f15ae4e729c02aa
BLAKE2b-256 c662b2cdbfbc7340c35db2229dd3032b2542b6bc3294294dcfb70659689a14e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.584-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 eadcc03fc74aa1e473605a60a5940245e9bf5b11b965c1a253dcaad7c17a6d53
MD5 d4f102d1082642f3e34724fdcc66704f
BLAKE2b-256 944b6878a41334443d1c3c98368f6e332b08bb5dab958a5a7b87bee4d0165bf9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.584-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.584-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 203c187a134ec2236851f5251653c55bf6d256acb57edf98011e8a3ed3a09932
MD5 3fc57aa526af8284176873e0053bbcac
BLAKE2b-256 045c8d048de88478fd0fb4cf14f6c37a33badbefec2611d1244f689ffb03fcfd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.584-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.584-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 daa76ca896306ea4cf87c1a8647647fa983a8b5ee68c207fcdf04efecf394a50
MD5 97457e56412e205f47fb8f610ce5962a
BLAKE2b-256 349f182cef9f557343a538779c401bb8328e395f3b0d0456bedb3ea7e318b646

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.584-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 684b244ae9f44e84621f141059daf4c27bc995c63c8b261fbcfabd1f35a3d08b
MD5 118456b9950e3fb5953736ec14f7588b
BLAKE2b-256 8f90e9860a5d185e38e5fcadcdc95ed42b4ee096837d731b41906488a2b440a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.584-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.584-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7dfff0d57c10b6c88bb67c001cedf87c6ce6bd0d146976e43501529dadb24f36
MD5 69d6d448d8d4bbc8d85aea2f0d7b7900
BLAKE2b-256 ccdd66704a64ac48ef454bbc5eb5886d593e0c812a37e55fbdc284e3a601f1a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.584-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.584-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6bdc1c88cd0b3b53b6de6adf4e6f38c933b03b097a3ba9fd22db2cc93203a216
MD5 490ec3ed14c888388797f828ce93b30f
BLAKE2b-256 2361e59a88317b8c2372b41c66f534c957bc15bdc830a2a3acce3d2aa8fbbc23

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.584-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.584-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0b4b895727402334219de0517a74842703b12183b59a908a7ffe1f1222af0813
MD5 8b56ea2a1b4611ec7d11a454cd9bf937
BLAKE2b-256 ca05abd9867684047c16424429b8ef6dda5d7c8158a1ef947be5f1066c328835

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.584-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dd107bc3bc6e59a812439f4a8175d547e8c6a6c90a1e795233016b1065eb0f36
MD5 5d391c9393f0ada169a231ef32d4429a
BLAKE2b-256 9d2ba3058eafbb3b46ab454566490eaaf08616ebbaac6d94cb04d207b5109a46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.584-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.584-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8447f2633ebd02c5c3f519866cf3d852be51d53de5d271868c047438de5235f0
MD5 4ba23bd05bdc7ecef7dfdfc1aabb1eca
BLAKE2b-256 8e749e85209d6d6bf4b5d4d799ab600ca077a127ef049c887020e4df5ecc53db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.584-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.584-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 160c9e1a44d69827a7a6c3149b4ed40c3fa1ea6524e2eb0ab0da6e104d0e5257
MD5 e1a61f7d0bf2600a165366b227635364
BLAKE2b-256 50cf70dfb90b4093c990939dd1156ed40905500116551dcf9884427f1b26b660

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.584-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.584-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 077c506613877e314c098323563e6a274616c7411f5f90d5d7111bc295e6e262
MD5 e7cbbe5ad2fcd75da5645be44741a4eb
BLAKE2b-256 b0f03b1e38ae67b063e89463673e0f3ef3aa6ab8d9f031e152b723972670351e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.584-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 519be19c1352d6882d86ce5a210e23f120a8191024ace85d91d026f72cd897bb
MD5 b3e44cd5fbc7922119b8184f4b9a2f0e
BLAKE2b-256 22576fbf778eb68107bacfe1c888329723c051b852c2230e32fc478b83f1f66c

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