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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.317-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.317-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.317-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.317-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9389fa5ecc73d5570bd01e8b6d3dfccf67ececc15704f3623a899df6cf0a19d0
MD5 140642b7c41c53ae47b7d0272c8753ca
BLAKE2b-256 02db78f7c66b216cef6a5b13047cceca1bd0705ce437867d969d6a4337e707bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.317-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.317-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1ba2b5012c94bbd775cad701d2ce011daf8a1561f9e61d9b1fab4ee0b4f12516
MD5 165eabf0bfaf4329ea2a9e795c1590c5
BLAKE2b-256 b43384acc843c5d27610daf1db376d90ecc48652eadc12eb9fb5f73799d15adc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.317-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.317-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7d3161786b79235ffac38efb3adeba354ccb6b822162ef1bd082d733a699bc50
MD5 03e81c42d64550ac638565193d84080d
BLAKE2b-256 5f0f43cc5c45692eec71d866547c590392adb04e39e30e83a1a2bc251333da27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.317-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f0ecaec646e2e1ccd65a553bcce6ef56f5f1e350856c519422d0ef1bd121897f
MD5 eb73e262c4fb9d3fc65953a7c70999e9
BLAKE2b-256 67ff9993f58cffd984b25a70fbce01c993c6eabfdf0606f6c2fde3623928dd2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.317-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 408129ba844455714de92ea88f6baed08ef90101143353c6f7c1345dacf6bb5c
MD5 1ff841ce3130fa0af06c568639d32230
BLAKE2b-256 71ceaff7e29b9e54e1b7bbff9ecddc41d4a5240974b80c881f6b407ab743293b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.317-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.317-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b297309fe7508092779e2f23c65a31ad8851983056c67f53c5b46ace49c737b9
MD5 8967e481ffd1d1ab903fd740cddf791a
BLAKE2b-256 430e850fe2f5d6e074a50a8ab01507e101e8da34f92f30e575fa4ef5434fc147

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.317-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.317-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2388026dccc3dd7ebb1699cd4240935ae566939adcac43eb0da71b88f974ad92
MD5 098876662f5a5983e43d191bc1a1740b
BLAKE2b-256 e406d0e46f21cc12012943c02c329d0693fa9f162e141373974edfaa74b8e037

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.317-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 47a4e004c49d8d49e8c5c723ee99b1f99d3f199738641a949f7b7c4026125b3e
MD5 cb5df8c228d3ef4fe993f45a0e12e12c
BLAKE2b-256 326496788368cd31bf2077a3a1a607f2bf6a5291ea8e13ef1f6c37d4b2a4311c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.317-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 185fa4d39f0435bc251250d4feabbff404bd777bb55ae883e5b1f0a89f4467db
MD5 5209eafe45317ecece2123c8105ae424
BLAKE2b-256 cb628468e07797ba8ff0a55be6260840a75673c91dbc5dffd73c7d836986b0de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.317-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.317-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 47d2167604dcda41caa8a51b220f50a6b1218f5df90b9bd0ce2fc0a8e38325a7
MD5 a9928cabae3ba9ede18ecad68aa9d146
BLAKE2b-256 dc3d05cd2a27c31fb3907e2c4b629657aa9ad3e8403675777de156c4cf148cbb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.317-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.317-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d94240952cfcdfc26941af0539fbe5b8c75379d254d38e6253f21502eb5fb1ea
MD5 2441b7028dac27f3b55887166fd3d8b3
BLAKE2b-256 120f64ed62f2990105d3d05a486c2c0a3a042cfa362c3bdced2731ddf98cedb7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.317-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fbf7ee70f678979f87b1c3dd565a8b9e84a4a2a5e846e2a5527e9bb6aa161fc8
MD5 33fd1d8689877a71b43c02c1f540e145
BLAKE2b-256 39b71f854f9e955a12aaf85c26170a58c35689286373763cb758d7d835ad24f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.317-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.317-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 276af655faa84f2c4e1be3c306b4e89d78ac3337443db925a845a0521629925c
MD5 6bc21a8dd6dca2c5ba0d2140a54a99c0
BLAKE2b-256 b317d3edaf13dc0d6f26523fdda0e9b6698de798591fe560d8301e4fb848fd6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.317-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.317-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e7627ca1cb5d0c26acade1d7ead128ea0b9aee4ed70eadd643173a62b1560718
MD5 7124bd0318ee88ab135cf7d2ea8182b6
BLAKE2b-256 953e8159deb114b1a54e2675f560ca685194c0495c024e0b49156e1a310d77dc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.317-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.317-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f876bfcafe2ed2dde5f5ec730230141a59f05c739cb7c87ba875a597c961acf6
MD5 fa24c0005baf4302ecec3bdfc2df8433
BLAKE2b-256 88be494b87350eab18e2da514c93aa0930dce54f553f98038558b59f617e706f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.317-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f6d06ca8a617e7e9c701228354601f28159c7ec5e16ae0038cbfa912d004097
MD5 31f47a9b25d7e5e418f5b40b99957ceb
BLAKE2b-256 555c2a09a68a6530700c83f576b9590ff7a783cb04f116da6656815733b9dda9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.317-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.317-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 35632c305eaf3fb683793fd35fafe24d88589c06d65a8f40055c2bcb2b17c988
MD5 cae34c141819cffd548e4e458ec87aef
BLAKE2b-256 a420fe196e678f12b4d159196c5459a16b775719e237225e2b3e92c2de8157a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.317-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.317-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 84be0998008d995fa8a994fd60249622d23eca2e70a04f7da5488e1f06a1bbb8
MD5 7d11ebce819793acd9623b84535835df
BLAKE2b-256 a98ce5f00e92b0ac573e612382a0709a606362f097a1e60647d12b5069cebc41

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.317-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.317-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ca68cdee62b4ef52e1f2d8062d9ed4fa1e4551f59802610f99e0c6ebe92f26a6
MD5 ab1f602a89251db1ceb999571424081e
BLAKE2b-256 cefd3bcc01b53b5cd51873db459289e0f799351185e31278403475f9b152f271

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.317-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d486002decf32104db2b3e3ff67936e7839b7832e6d6a5ed77fb7c10a5c7405
MD5 433d614a7461d842d6c71c9e0e44fe8b
BLAKE2b-256 50f1777bc66203cb9bf77cabcfa7ce553b4490386aec698e5665354162646be6

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