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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.335-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.335-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.335-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.335-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9e0a64e0196a50b55d8f7b16b67c31254dd3c05d113a3f32fd6536b4bb833776
MD5 2e9756d01a89e891cea866bd9d525ff8
BLAKE2b-256 a944660ade3610943e7a5e2d67c7f8143f4c1fb2104fd0f5c14e2a8e8364ec3b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.335-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.335-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 90d2528615e784d61dd547cca02197e138fad3e33391faaa528c0ba2fb766f52
MD5 a27f3e533e918e6e189f1b7bf6170d76
BLAKE2b-256 fc5bff9a0bd751653f81fde8f6a8b913b1779f7bc549161a2d3e6fb39a3fa915

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.335-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.335-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 216722a9db121984b391e26d63127d5ed81a5a5204eabfc48151257acb2d4b82
MD5 8d4dc608b261648294adac6a3ad7dd5c
BLAKE2b-256 257fbd38d125ba7aacf5f3734b71557fab142909dfaf9fbfa84bfeb79a732567

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.335-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48d4579ae9f7b1d7dce7209eac93d0c2683e16cd148bd8877ba099262bbe0804
MD5 f5a1605517f591929cfbf3ed46f5edd4
BLAKE2b-256 2475520127f273ab241be168cb5a11cb5a9185a794cabef7a1262867f5601e98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.335-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b904b9a0bc66a9408dec1e3d94756995c29d8063a9271c2174cf5f76747f6f1b
MD5 d003a4b2d3f59bce8102876b211b1650
BLAKE2b-256 ea355a9b445a74a7baed59f67264edf2906dfa2882b0e8beb5e6c908a59ac6bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.335-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.335-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 19fee9d4fa5e335ae17e24f3f490495e79e3cdc6b53862584860b9ec26bcdf7a
MD5 3f996acf4d54dcfc08e97c13dae4cfb4
BLAKE2b-256 059958e545991dc6047dcb7085c536d84e02cd2281700e6d03e5137fa1407195

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.335-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.335-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d99b03d2030fd23d895da2030f3527dfeac7037c6a081c9c2ee269c439557c0a
MD5 5c8683f5c0f5ea173ec0da3ef27b6eb2
BLAKE2b-256 750a70353502367af8c4a5efa0463d37d00e70ef3b0b1b0ab93701a3bdfad622

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.335-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29e1bea706bf67416ae8299fc497087d0fbe95b6c8330b40b907996d9391382f
MD5 89198fd1b1de37f9eecba39a5d44a7db
BLAKE2b-256 ca8e304128b24d66e7f8bd3924453a285b782c1f6d5c61ada6db7ebbde13b7a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.335-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 82484fe07e18456596ee61e04b5d776f3fa599d281f16b322c11b954e94f4549
MD5 e8dba26163d58abf9c325701eb375d47
BLAKE2b-256 1445dd3b20002581ba3db0dc88c247572e83231f1e484185e2a65936ff093fd7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.335-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.335-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 eaeb83e130f9135ab40ce506dbede4ab7870073aa64c50d2ce4c46fe28b0c2af
MD5 dfd745845a6f08a5fd2a98d87ad1f2c5
BLAKE2b-256 cb87ae9d3819f3d90fd7c08d6f8a6b5025dc086032d82679f25b81cfb0300d17

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.335-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.335-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 feec53585d15c26a12436c34fbb4bb6d7e6c452faab4ca06affcadf11333c7c2
MD5 d67a164927101f1ff32c800b56613e2f
BLAKE2b-256 d1ee52d0083e1d79522a0f9aeb8a9608788b45e92ddcdf387f83a1d5e24584d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.335-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3c91c5ffd058b1f6bc791aa92b5c657059bf01b2c02472151387ed4c6d101ade
MD5 c8da3c0ba723d37254f9ebc1bf0da7f6
BLAKE2b-256 7558168a94834b660f40eb43f5f9020d8c639c9cc7c0a58fdc2a1cfa7d950c89

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.335-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.335-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c4588f856559079b8cf8d0568ae9d04bb5dfe95f15677c2a62c843e52719f7af
MD5 7442f9cf3854ec879842c4a82156d4ff
BLAKE2b-256 74d4b13a74b809a27c74978f7ba9399a3b3f95bd3e220257acca6cb2bbc1e6f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.335-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.335-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7b2a0825e5a9ac8c75fb03f0eff1be07a9b1c86bd3e99288fab347ed23148eb5
MD5 c254ae2c147a6ab8ea107ef5ed1fb536
BLAKE2b-256 eb529acc3bb318274dfc4d1df4c841712a3e253455f441b54452160450041f20

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.335-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.335-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 be883b7716355502c9e34a0d9dfbab966c2279872ac6bcf2e6d23c83d3ea39a7
MD5 d69d9a40da67249ab3840c102f04aa8c
BLAKE2b-256 69abcf2252824a7e3127bfdfb1fef0c954fc53ad581f13e3cf3cc267ccbf0a66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.335-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d4e23eef3c9549a412aaeeaa1f591ab8557ff451c9e2f0aee163302d7e8ed12
MD5 2463ef7a2a5c20f68da059e1dab580d8
BLAKE2b-256 70d03b371a2a0113db711ade14cfd7cb96c546375c7a0fa1ef50d44efd55108e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.335-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.335-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bc8d4b44775f09a52db9b2ffb0f34e113d58c7bfd909ee4ba601cc3dbb010caf
MD5 60beb472256c77a3dd0f742f33968710
BLAKE2b-256 c918d3641a8274a42d465b1307c8719769d2b91ad8e4e780f634fe7733b90b45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.335-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.335-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 28694625b529945d4543854b868149deac494b41f42b2816aee11519a471fffb
MD5 a0c9a790a51937d2dad02212f56b9762
BLAKE2b-256 fd6d94e69735e6252adf7843c84e668c8567299cac13be0a29adcedd69a6ffa0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.335-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.335-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 55077a31b0ef9f564c8f493f83a2577dbe5b384c16c3b5ffd21743600067142f
MD5 a4fb768a5d101eab6b177b600ea94081
BLAKE2b-256 5677ad04b5f2e27892e6a3b9d0dda6d40880e7a9bc66169d55ec428a5efdbbe0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.335-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0edd663f3c01be2bc0692f3b31b8dbfe0ff29fa1d0c6e4fdf03068e48f5dd8c
MD5 94626f1b36e405884d7f5a37228401a3
BLAKE2b-256 68dd410da265417f0de325eed4fed7d90bdee245b35010acddcf6339cfd864e1

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