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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.806-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.806-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.806-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.806-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1ff186810086fdd42503139e998cd9d9cfcbf68212f039d2c092ea966d13fabc
MD5 516793c6b5b0113759687864efff9588
BLAKE2b-256 9ee9e2b4f54738f5aa2b0d6cc50a9f5ad1e58241bba2a673b3589e511bc57f6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.806-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.806-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 fbb03ae7414ef5ebc9ed1ee90f90d009d79c90fe3ca703ee780d84f58940d6a4
MD5 4eb75a84edc03e5830600c1732d8be93
BLAKE2b-256 ec8e9aa9e1c40258bbb56164631a0686b8e686c7df8c031514200b9c616959a8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.806-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.806-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 33920ab1c3314aa5a70c18304c69ff9a24136ce9e475beb48245c071d501311f
MD5 72f279ae45e2fd6487043deeb2e6152d
BLAKE2b-256 47fad2c167f36ff62ff268f2e5e6bd72dbb6679aac02daedf3015bb27507a0c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.806-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 052dcbaf9106067f43c1273a4971f8415d7d87027da0cbd63759383852a13a35
MD5 443f919bf526a0dee18da45b799be8ab
BLAKE2b-256 f1dc0971dce1b3864258bb298386c2fa4787ebba8c66d4a45280c29122f94351

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.806-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cef28de90d24cb13c329dd99f65b2b62d640adf02dc626d24ae296eadbdae61b
MD5 8f7912c35d6db930151cd4177d81cdd0
BLAKE2b-256 c659781c2827373d31bdb9cc6b1528d156f66ed036e8eded020fa8b44a013576

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.806-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.806-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9a62656e3f89e496821e0df039e541c83e17b0e784439b94f61fd132963a78db
MD5 6d258ee38d5dde413cdd22b1e2d707c8
BLAKE2b-256 8c1ed27c39d502c4a31420fa753a0b134f560a98171632e10458b5e15a1be8f5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.806-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.806-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 22293896733a48336a00c04a0ab6235d641cbe2e7ef7138fe8f7feb19755d203
MD5 b4f6c3112bc1d735888ce389921f777d
BLAKE2b-256 88aae48b8a48f8310a0557decd40ad52555b242d880f102c599a4117abcff20b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.806-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b8cc5345be0a5097f69ab68c8070123466f9f9682e495d83e3a9144a7af7678
MD5 4abc256e659147b92c01fb90c77370fb
BLAKE2b-256 0b70dc6012b9541e896cd781d00c2018f69a5068eae0f08ede69fe55f7e61f44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.806-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 783094ba91e7ef5f43c33fadef3ad93404579bde88077c7cbffa0ca90e607f21
MD5 ef14815f2a30f1951670ed2a2a8f1bec
BLAKE2b-256 2950803dc4508301fcafe5b6ca8a75f5c2877c502f961a767a69d73e924a90e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.806-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.806-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7af0d8677d5405d99d539366d6860daf0ac974d11c025ea0d4a1c8adc32b1ee2
MD5 c9fedc03e87f48364593f14f8764b91a
BLAKE2b-256 8c2e81ef83c749b43d61b457c9f842911b5f9953321b0565ebe32a8d025c5c41

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.806-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.806-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 abe419ea0cc2a80e3c3fae124a52ba3c98c9b669c96c4afd779982f2431a0bdb
MD5 8f5298d0c67d1bae7c31aacfa9db6b8a
BLAKE2b-256 eedb2ce987148a00a0b1593c7eb2d285680d869173e8c461b7c8453c585a21e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.806-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f0302bb6723a6b607175e04ec21270f43e0e0fb5ac7a0e497d04aad96c3ceb5
MD5 105368c29878828b824873beba275eeb
BLAKE2b-256 f91873272e48030eeb4c8083ec8205cc47a796b41f5c0dc11c62d7b2b1bd4d6d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.806-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.806-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9ff14dc76b7586f3bde65c512a5434e529bede7f583639bf0db40c95ea488b67
MD5 fb220f42ec79c4ba5693d70a06f5cc21
BLAKE2b-256 11968762ff1d1565960e7596f40dad39217d2e513430698951d116d2359b8d4f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.806-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.806-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 edd2630703403c30729d18e819cc0d945be0fe76b2dbfe3adb8f071b055ad74f
MD5 e594619e1bff27dae053f79e0daa56aa
BLAKE2b-256 bdf54bb54847775b78d8184a5e4805d303fea2563c34bb25c8cfc0a458cb10df

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.806-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.806-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af355c0e89cd2cf3b89126610d807deff77f9d219832ad2eff29192148556fc1
MD5 9aad7eedb8a5707388396358f9796c41
BLAKE2b-256 ebdd2be1da315af31f8ef078851b2bb8305cee396490ea233c4a7a65caaedf2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.806-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6122d5c8823e7c0cf2a2bef74f59aaff86a28a5db00919e05e0619b72dd0249
MD5 5e3d5acdcb536128fbb2d79cae9e5783
BLAKE2b-256 4ce9e2fffc3aa4daf74002839076c79269df3a448232ac70a8282129b9742e26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.806-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.806-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3029b22be19e70e8140850513dda96fe2a244dd134b8190d2070a7c22218aab3
MD5 dda8b6e5378d56350bcc2dc2aa1788fa
BLAKE2b-256 8b6339ad1d296bf137e8b9ac3f85c96ad159a3dcc02b60eae6a35198aefd9e79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.806-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.806-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 41fa95a08ec23f85fcb969199fa6dd038ff888b192a724d181a65e6c7af21f12
MD5 0d77229bf52d246517592d09b8ec22d0
BLAKE2b-256 5ec440ad2a984d5b6360c5747dc222918de83a70a06150f1490a1b6d518dc9fd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.806-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.806-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b881027ab039278630308d221f9a4775cdc30c6cfd80990993f915a2881dffcf
MD5 90018ab45684e624481dc7e718c84bd1
BLAKE2b-256 81ec2c5d4aa7d253f297c7ad84bdf1f0c456259c6201bc9d4e9169cc947c2e1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.806-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 58e40e5c8e379444fe78d5b137139da64429b9760eed1cd1d63f5677cee8f6e1
MD5 2e80aa0fd77a0655464964fc110c60a1
BLAKE2b-256 1c89a29e0f9e10090bbdb63688fa0b91579f3e92ed8898f25e487f0be14a5b8b

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