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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.23-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.23-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.23-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.23-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.23-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.23-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.23-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.23-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.23-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.23-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.23-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.23-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.23-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.23-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.23-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.23-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.23-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.23-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.23-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.23-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.23-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.4.23-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2c56cd8dddf5dbe22c396cbd5003db38c77ed11ed158b9d77f6556fc9ebc707c
MD5 f7afc18d7c2d0124c094ed7e25bc1aa8
BLAKE2b-256 943db0f85ad5488446b608c85ed8f0bfa4160d04ced352ef9975c2c239f5a835

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.23-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.23-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5d79584c8fbfc573f4bbad2865218f44c31a595007d93de30f3a5d7fddadc0aa
MD5 b3b367756d716593efff6356ef209c3b
BLAKE2b-256 7c405347a660b69e36ef7b89a07ce2715263b4618054f9e7975d7e5ca85473ae

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.23-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.4.23-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 818810e776b913947da91884e5208753201d407de9e84a05e4eb8d81de5a065a
MD5 fb80f24c5d6859751c0a2fa31ae9fa1c
BLAKE2b-256 e6350a1f52eba6a451a796ce04776f36d4e0d0c1f436dd9e0a2708419329dfd1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.23-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e2b77d5b9944bdc846796612836b4a82fe0aae4412593d6037df027e18c8d50b
MD5 1e4fcba16668266ed4ea7fc7621aebd8
BLAKE2b-256 fb33bfcd62b76080a36a81d68ae4cb80ee445998d423ed5b6d433212db348389

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.23-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.23-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 aa84d43fad3fdf45b2596d9a78bfcaff1e73fbd8641e27a911c58d38c872ae12
MD5 93a92c76ef2fb2713882b3f64670f107
BLAKE2b-256 007ff86abff338cc3dcc7957743285e604b88658c05ee53c1c85a7ac9f206362

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.23-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.23-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d6d48de51a1c65dccc6abc387820c2ca8c82ec156f87619cab77bb378d4cd058
MD5 fd9b1ef9d5aca89e0f89678461208281
BLAKE2b-256 acd8e2b67f48521822efb07a7537f81ed665c3c3c7332c78c18a6772a6647142

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.23-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.4.23-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4ff0d90987bac83670116b06acc39c967faf6895514782472a00bfd19888bfcc
MD5 057de0218a6b5296da75b021cb86576f
BLAKE2b-256 e7e7b3becb76edf78abd07304ec11bc384a45d32d7d6cd0c428c718d4a573065

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.23-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5bf922dd52760c9d181b112e03fcc413171be27eba33ec9a34cfbfcd6b2c050c
MD5 72b8b4fec987c1c888940545b4cdecab
BLAKE2b-256 cc3c98e7e5ab07560b1cc2ae3e7a2ffe6609152c47c9549e78fb09ff854cb2ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.23-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.23-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 78a9abc3dcd12f45a394dbbb8c2a10b916c73f37611e2b388b4cf039d3b76f19
MD5 3bccc435d2b5b78bb1449970fb547af2
BLAKE2b-256 3d5a9405a6b22a54a07fecc9c7dcf015b0d838a51ac4e675fea6a65c8c55cfaa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.23-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.23-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 60e4c9c92bacf56e52b6355ab3ef2e53135da0c6ccbc5594382b1979a9f02391
MD5 3c80577832afd9659d42e05c3ca9f879
BLAKE2b-256 b080df6ec430634c2f40211c8ea16d6c04c61c2d050e4940fcc96a1b34598278

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.23-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.4.23-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 39c77debee97ed048df532e5f37194522a61ab294e69be64b19af9f9d2f5c5fb
MD5 7167a2ae4035e0a272d473d9451f1d0c
BLAKE2b-256 f57f81d47278421c618685ac5889917aff4a07c79489c21202a35a54f9b0cd2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.23-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e77864b03ccf8d1a6085f896103ffc2f804c7b379a49272a0ed2815fcee34836
MD5 a902161d3688ce8317c4ad21f6d158f2
BLAKE2b-256 494963ec18614f44a98f01655addc5fb50c52cd3881b0b62b0025cd79609a50e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.23-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.23-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2067572b2b9bcf3c0adfa368fa502810c3d2008b14cc5115ee45ab01ce01f498
MD5 99b1460a0b47d113729c950013a9765e
BLAKE2b-256 f908ced9a8132a0e632301b32e459edfc36a8f466b71c216776056dc94d6d263

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.23-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.23-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c0e325296d1d02f04ac79932e468c259c7680c15c9ae14bba16c1871a53d40e5
MD5 bc768922c52079bac56038072ed160d2
BLAKE2b-256 f0c4994200ed96857038f7eeb0d7799ca0f98d146b9da2244bd854304db0dd10

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.23-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.4.23-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4c75a52999f8ed3a9d040071ad52c10eeb4b15a01b76649a34b97f808aad6a95
MD5 db9307183b517eabf7d625e8419f57f5
BLAKE2b-256 05e249a77fc9f23fdd8c6b8c93d4caf592d81d6c65c8a75400ba01ada74c051c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.23-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7e764d17539af12083ab458825427608fdad0ede01b75f5176a1600011a3ae42
MD5 acd868449969af8eaae60a984d24c84d
BLAKE2b-256 46bc16034e64676e1a022caf92d6c33b2ccab1bc73559e1cbe8ce18ee8f5f586

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.23-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.23-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 de890ae39610b50caac8299527b1f265c71822332980462703373df916b45b64
MD5 2a6bc2d4296c241928123d3f156fa1a9
BLAKE2b-256 9cdc93465e7ce014e8368b02bab081d87d550cbb5c3c900fe70cb8c5173f2f9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.23-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.23-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fd1425d1657e9edbb4f61dbb8689140703aa404a05e81366606b732c23b6a6cc
MD5 7fcc02628bff38c49bc2b8183dac6741
BLAKE2b-256 ef505a44f608f26469439aa524bd5c716d77dc18c5d4e30115ca07689bd3f8ac

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.23-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.4.23-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5d9cbd11804783bad63024465d12b8e6adb5128d12fb34b3770fed97f2baae07
MD5 6d7088bf5c36eb88d77cb8c335de5c22
BLAKE2b-256 fdefbe1839af341f4e975a2aefe76d474dfa904f066ba260689bfab0962893b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.23-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0698ad3389136858b1169b74cca0a4992f03d3fc2104be8ac1ab5bc00aa600f4
MD5 7ced6df1af22625a53691d5935c6b8bb
BLAKE2b-256 2e22ad81e6a1643e648029e5fe5e922db07df3d3a2806e407443e8ee9650b319

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