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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.762-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.762-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.762-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.762-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c5163dba1a96a58c1d5b9c2cdd344f64af2afa52b96c2ad2b2e4580e431062b9
MD5 f44b8ac0086dd2209343deab000f6ab4
BLAKE2b-256 3799780006b9a5a53ebb1c61a9700f079083134acdc324e4d2d4b80d81eed243

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.762-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.762-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5c0e05066a332e808569431dea39add8c4538ee7484b74c5bacd8b27c19f8442
MD5 abdbf03ca3a057653c127df2bd66cf12
BLAKE2b-256 881095474e920c1e607f504e64febd3cc980c5e902716376fdfa021252d93f7f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.762-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.762-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 291d75e05968b2bf781666f3b0be2f2df886b4af638fb378f0c12411c0259db1
MD5 5ac16ba352451d848fc9b973ef0945ba
BLAKE2b-256 ae23da310c3f624b6d6ee1a0c24f1e080dabcec47e8b67b71ce0550a783af740

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.762-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4f90fc8bfa3907212d049c0eb159a78bac8d8bedcf48a7eaf04279a8ff438cf8
MD5 ae7b3ae96aa02317174dcfae6a54edb0
BLAKE2b-256 cb3a791fffe36fd28d7ac6dce2d12f60127f9fa227a63a28964a6c72383a2bcf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.762-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b85f6ed6b93846732d085baa4fef41abef2f0ce1577c3d59b57089b200086a29
MD5 214873520dc3153a271ff124535956f0
BLAKE2b-256 31c68cbc1883be181d5ca7c7cf97b633a6c70e0e5a6c3744f39390cbc2b423fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.762-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.762-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b93b62405afa3234885d209e13ef175ab0b54c9bbadfa8db3241f84cc85cdf50
MD5 bcb5ed019cc2e3fb8e7c44b56623a3a9
BLAKE2b-256 378c150334229790837d736161b811f1a7a77aa51c685e8e055d0e66c4adccf5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.762-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.762-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b6e16e04b58b592f0e28fc57309e2cd248b9e890806cacaedc2f58f71e8b8549
MD5 b06628d7aa86b7e3353c3fa83e286a09
BLAKE2b-256 4be5adffc1b42aecdb6074e508e4ba6681ab4a918aa596e708197969286f9371

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.762-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bc32372b742210c58ed270f8b28ed058e87a9cb6e55f4cd45e5a7932014cb361
MD5 bee2959aa9f2550bf4e0aca82a8e57fe
BLAKE2b-256 030befbbd63caba64bdbb023b1b9f8666e1de5c7315fd407ee766e062a362fa9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.762-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b736c5a72d30c3e2305537a52c1b9a8274cd552aefb61d2e9ed3781aaf3e7889
MD5 c78e8dedbfbde0179762000c8e6e2d5b
BLAKE2b-256 7c42a74928ad122ab3c24e0751d1bff7f4294fa6d7b118060c071c0fe059e051

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.762-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.762-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f1d6867aa3e97ce050c213133c701cbf53b2f6a3bb8cbe7036b90bf5b338992e
MD5 a0567c3119b8ce73e9f4f5b9691b26cf
BLAKE2b-256 b4ed20ade05e501ae4371780b80d52dbcee5ed87dc7ae1d03163fd2049a59bc2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.762-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.762-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8449e76f84afe4664e2ab3666f7952fd7e28ac45212cf4d2274531a28f0d0eeb
MD5 cfe6f07944e597081d8502eeb7523eab
BLAKE2b-256 55617290707c22cdce4f0f1044f3309f072b707bc49d860128da79934997af7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.762-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98b5bda9b3189560572c71b62790bd955065a2ac2cf2e79c3c5703b9b7f2fab5
MD5 6edd10722e7132769048da9f5f93986c
BLAKE2b-256 1d163a17d589bdaf832791166e421d959ab8153bec907eb0086e4fdc6282257f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.762-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.762-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6cecfde9235382d5f772e71489319af416fcf1e14d6dda4c77506ea3283b77a9
MD5 4a0dca992a0ea4e553fe5a91d68cd66a
BLAKE2b-256 a749c7d94380b8c3e1d9d8f5b7b772a0733f6747212af6c1dca4bed56503fe96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.762-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.762-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3cc8115fb1646ccc971c61742204a2a9e231ff2913dda95e5a19505edae1d319
MD5 d53009a388021f22fccbffd4b0cec31a
BLAKE2b-256 c57cf9f134b5d0f769c7f5129c9f78bdac9fd559d874ce01959912207602fca0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.762-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.762-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5de47ad1883ea89e51efee0a0ea5741777212f6200bf67c2fbc4bc1a72833884
MD5 93c614b5a87e529515947eb852cdc826
BLAKE2b-256 9eebd4df23b8e68c46f60a4daaba2b7c291614f493800d878c5d2fb43381328a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.762-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f7f1313c06a4e259dc3bb73f16067e73ff03d33fad518fcca213b330d0a3b958
MD5 b079e50609af4a14e6589a4188615905
BLAKE2b-256 e585e666fa638891ce6990ceaeb1351a344b3b560ee846d61b89801c27ded046

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.762-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.762-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 19ac8c6087e06f428d1e3aded25307913324f82ecd2a61ca2184483f855f2cd4
MD5 1d2833cef3c6c33838760e070ecb74cb
BLAKE2b-256 f26a71b72a27ff5525801656bb0a82c4f8656b28c2dcd7625e93368896f59f43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.762-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.762-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0a932a16a91b83a15b483d1da71a4149fc9c3aafe356ca00ee0927ebef96cb1d
MD5 2637489b986593dd96f26b54d53d542a
BLAKE2b-256 1e5fa4cc85df846ac0d5bc7cea87da5e6fa00a13e86391369503af516ba5de7f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.762-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.762-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b3ee67c14012446dc37cfeaa99972f5b91270e1cf99aa3826f74f2e5548458ae
MD5 a16b8f839e13d23bea7576ce017f3ae5
BLAKE2b-256 f7d3f359203aef20d564495de10c9116b33a357ced911d3fade5361e42154099

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.762-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 180bbf4915555c02a342aad60404018c778bdb7b4d55bcf5828ee8ec0e87e2f9
MD5 2ad983b06cdc4bf95714ed035a9a6c36
BLAKE2b-256 12dda11af4b4aaf6c715be98b6163ab1a188917f50df8fcd4739dbd07761abd1

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