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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.30-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.30-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.30-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.30-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.30-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.30-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.30-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 086f929bf646c796b38e68ae2c26075a6dbde8e505f387d07d16e4bf0f4e6861
MD5 cb2fff3203057a6f72ca2f41aa4a0e29
BLAKE2b-256 1b1769a71c6163e58d568e511d206ed311101b2ef51938ca3a39e589d260fb16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.30-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.30-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e8d9e6fcc0871a6f873acbc71fb712660c72c03b91ed03c6b331c9e5c6825560
MD5 9ac4b0b35bccdcaf88bb13d7d6a82ab2
BLAKE2b-256 1b2ec2322ec7410fedd7ad754001642f45ececb0a2c490a3cde8028b118abf7f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.30-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.30-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 424a070a794f6c4255d882e6966735f0bf819082694abd520a95363018c35eba
MD5 17d3d3151de3e208ae20303303dc1ba7
BLAKE2b-256 36602018bf4a92611d33161c494792a9412434ac6d718fe248ab73c00584c454

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.30-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0adf643c957e9bf6f485d077ef93cbe639506a01d146bbba1c8c2947a8dd75e
MD5 05c819f71f147b6a3cf1e9df5db0874e
BLAKE2b-256 c4b12eb91fb15a0ae0fdf5560754c492aa0a3d3564a5d02d3d31ac2d1b1e341c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.30-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.30-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f55aff22a425fb263fff7ac8a10d7343a89ecefcfed3ed2ab3c475be70709e8d
MD5 a0fc3774ec021d7897dbf8195396fee2
BLAKE2b-256 e3645c9c7fec525f4f65dc472e6755ddb8a4f9b8ea838fd436fc94e338be5c8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.30-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.30-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 793cccd0450105050850858ae66ee65717c4218c56b725217105ca9b440fb55c
MD5 ac04720fdf37b467c623bd29fc79cf37
BLAKE2b-256 13bf270e11af7a3f6f9c6b5afac83d4f07b6debeef4e3ecb8008a2038ff1a0ac

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.30-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.30-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 957c414e01926209266ea220dc4fb50d1751e94ecd48baf5cd7c80eef7883b0d
MD5 c18f425a4c39ba89a2ab39deb28b2a6a
BLAKE2b-256 34570ed4f194b4121847b48e622923b8e1497deae9891bd764f1a2f82bbc80dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.30-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3f00e42441be42b4d67c514be5087cfb230ad00eccccec01a5d3113137da6673
MD5 9b9c8928362ebce66135e990400df832
BLAKE2b-256 b21847dfcb06046d59b6fe37dd2a810ca97c67432aab3a1f05b274fea19543dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.30-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.30-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9d6f9c0c10aab9f6c505c3483dd287ffbcf766f43970a4881738fcfc3c7c1399
MD5 ebdfeb772531a282e0fa1d6aae2320be
BLAKE2b-256 195f24703104db6e3c75abe87447eb25c969ba27fa8e76806d2f9588774e5c39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.30-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.30-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6cd7b8fa01eaff663e75a314ee5c67a781463a4ce2a888bb333e30e0be0c90f6
MD5 72dd01a8ae8420d26475e9a1469a4019
BLAKE2b-256 e389d984a940d96874f388d2886df459f78039ee2d73682781cbb5f0c7d02b75

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.30-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.30-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a76706be83a2ef88922c4fa57ad9dc4fd29e71932ba2830cfbc04ed4e26669f7
MD5 55915af532c0a7623f0ec2912bffdde6
BLAKE2b-256 ec46265b7aae973674daa410ea51435902d07462eda827cbfd00112bbdedd6e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.30-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a53dcc010349990531bfdb8c4fe243414134354039e36259a0d61da4aff621e9
MD5 5143f4c6905732ddadcc4f92fced8c30
BLAKE2b-256 69ba239e9e8eda6b9356d82c84f5fa4b8a3accfad9f6aee151eb6ba0d29e2401

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.30-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.30-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d30776bfe5fb55b3d69d0d12608113d4afe55a7a2fc4ae859225ac5ac8878393
MD5 333fbb74ab37ce127a52cb0f91d38786
BLAKE2b-256 c5360bad9cee99aa976b9831c79436a333bc2a4c3d4acc17597801f1b5cdea16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.30-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.30-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 877f9ec3346b732b7d1230946d62df6831874314c89c89d830464c4182ae62d1
MD5 fb9cdbbec6a9e9c0eae0ef87b6cbcfa8
BLAKE2b-256 c16d7cf263265f4cbdd7f4174e1d57ac4f3f2b8480dbbbf02f3b5a2489b481e3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.30-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.30-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 160c81be41efc31b67855cab12247f9e30fd2b913834fdb80fddb054fb062ab7
MD5 c3480b61a2588eec417dc934e7869c35
BLAKE2b-256 da0670a1631c7644cf745ab9e846337e69c6ea8d3116be362191bf38b1d8e7bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.30-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 010eb9b46e3bba3f76fda4601e07a0bb3a18aa49c9cb08c5551d1f0a98c0ef00
MD5 c5c5a0461b009a080eadd5f5ba4c29b8
BLAKE2b-256 eb237d69d831dd4937b55f83320f31c8edc6a4fc8a0ca4fb40e2ecb920dd0e30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.30-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.30-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 030dbf62c44fc40783f6ed998a03580e6850ce0b9a10b64e3bcabadfa044b662
MD5 7ab6ad0e6417894ddf9e2c31cca22af0
BLAKE2b-256 0470bbd5673e1dd5d72798d5efd3efe7062e779f3b4bcc6951922f8b08c3a274

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.30-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.30-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fc526ed992fcaddb0a5b4cb0f062e945c29636937486eaa162315f0e5fc52098
MD5 59f512563dc91724d57e14f838659c99
BLAKE2b-256 c42047fdea9b6702b734a1d7bc826571f045d5a7f715a25285c97c84243ebaba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.30-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.30-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f1c926a21e174c6c6d6020d40843ee8cd9f082732cd6c863c6bf9f4b4290b8e0
MD5 aa30d2168877b802b31c064ebdab5c03
BLAKE2b-256 4b70523861b738f35119e2b89f3650fe4934308e3d36a4ca274da40847ec5ddb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.30-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d8b3046e02dc5a02f53b84bc2d38677520d4a4ef4b8dc736bde7d804333fe061
MD5 db0d7dc394d551bf407d6949cb710831
BLAKE2b-256 ee79691f1ac0ab5dc09af72f21f8a85be842de19c1e33e12d8b6491258b8db7e

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