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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.802-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.802-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.802-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.802-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0b34c1d5f879f6537c20d17153f03de5ab435b6ee824979140438f4e6f518854
MD5 32a654927d7a8a2ac24f19d0c067786b
BLAKE2b-256 ba6a3ead7330e5ead4cf9a2c8a908f597caf621532667b4cdebb6cf35f223fd9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.802-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.802-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 087179cafa9240f2e385b4da3494ae5d35175f07690d1a65b4480d6657023f0a
MD5 76220509c3c0f5602b3f1690fde7d337
BLAKE2b-256 8ff59a3e0c4768141efb9cdcf9a38e23d819d032d4627af836ff3f6c830fc0dc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.802-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.802-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7e7f2c0172faf920d1d64fd296c7683e523ababe1a5e9039b1fe44200269ea0a
MD5 fd1402333c3ea8a9be8360c19c9ac851
BLAKE2b-256 af09a46fcbe77a46557fbc58cd6a29307b4711717be8b92914a995e80b788727

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.802-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 232ee531a512bd53613bb356802e6ab23ec4bbc92a577c2b5590fdeaac9948b0
MD5 b1c2c221afcc4682fd0072b767bc7fcb
BLAKE2b-256 58031e54c7cfa447f27f35855df5139895f85b192bfd57c965eb061ba6d06efb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.802-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4bc9eb7b641393a2b1dd793089cff6d0c9a04ef8b506c2ecc68ab9f73f4e2790
MD5 8ced80adc1e702e325c713d84f34d523
BLAKE2b-256 1168858f63891fb611aea05008cacdbe2faf587a055c322d1c03424b2f2cc91f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.802-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.802-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5ec19caf5bb425f131a3eaed8a708d89fba520a9c4bcf76c349eca24124253b2
MD5 0837ea29acc41b92d7720532d5d9642b
BLAKE2b-256 3a4350f19c85a108e69431f73ccf421d283e08f0554d2113ae909bc03fe37a12

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.802-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.802-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c419cc28c75f3cba1c8549f20dbb24fff643bebfbb7a50c52cd1dc437eecffcd
MD5 08f060c82df30460e887a1accebe9738
BLAKE2b-256 db80b51fd32ab2ee2f20de0a73b1284669ba2159269a152dd9d6a5f7b0b995f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.802-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fde20943503f92ece9aae1adaca53dd0d22c70637496677cff50c189cbcfa467
MD5 ce91da22d6b28e16ae12361aec6d5727
BLAKE2b-256 2eb58c53c6903b44c069d2baa22374dc5704c21bc378afeb3544b8bcecfaf85f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.802-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 737da790e3bb7355cae42a6c2f6300fc8675a45b70602bb07794df63c5305541
MD5 4d436892082c21bb995b3e7142745515
BLAKE2b-256 365b58b3282f0af9162b3da87b27839852f8ac4f947d5fb4cbdc60d03954f237

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.802-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.802-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 278f79aa5f8fe232043f95fbcf8fd72f78fa5e18f922587bc937129bdf842ab6
MD5 1da782f5afbe4ad44af20e59c19dd7f6
BLAKE2b-256 307c037bd5f973bdae43139aa0c8e7d1352f48a4ebf66f301cfde88e3f996ea2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.802-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.802-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 60e81b369b04ff8bbdfde282ba78b93ecedcaee8e074dceac4c1eca923082d90
MD5 ad84a05e9c8e4d4b548db019ebd8cb6f
BLAKE2b-256 21739484f8fc0202e1562cec2ac0f9d466cdd5bc3bbd6de7ea4b91e4e24a9918

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.802-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c34ad1214cdeccef3d9f6bc8298c6d58ef6417540bbdcc539aa76d2cdcc8dbdc
MD5 88aa5eeaebbd5699d7934d3a0e5c6360
BLAKE2b-256 cc2b37a7c81a2033689ea8e947fa7b4c9bf3dd67db8455d4095a361ce081f31f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.802-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.802-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fe53037b04cb5f60935d1b6e3668cc103a029ca9f43dc8a0d676a9e324f97513
MD5 48b76c2c1bd9f303cf1f11c5c2bce939
BLAKE2b-256 9429552f04396d73dbef015e4e4f704e6c3c4abe3e694f1c98660d52b3817985

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.802-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.802-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 728a6d87bc47401c006965046ffde81b29040c27528272ed3fcdd91489a4abee
MD5 a5f3248a5743e8960471583fc0d1398e
BLAKE2b-256 52749a2c8a1fc0556562b60942cf0c70d1b8320f3eef98f55d3b0c5b9cfd3e34

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.802-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.802-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8bcf21822e16600a9564b4f6e5afb9747eebd46d87a0730b837c44d58dd2a6ff
MD5 43c5448297f71f266287a3ec761826a0
BLAKE2b-256 fbc35af644a6fddafad66d3a90e14925c56385a3fc8e6cf764676de276733dd1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.802-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6a81b858beeb741644969025ad4efa026939bfc3acb48b3c162ce9013fd87d8
MD5 84bffab0c215bed94e53d09a1876c67b
BLAKE2b-256 1efc1d9a31bf1e20a6301f8761d95faead93da88e84d5538f079772caa368e8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.802-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.802-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 909134ed10d8c4c99548a3b31cba574c4a2ac94e0220faa955f24e07a4e8c127
MD5 c75a10b2d8c0e189aa9484364745e729
BLAKE2b-256 d77c18b7bf95c34459db043d5cf413b882781e796ae89ec1d9e293d96c7802a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.802-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.802-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d471f3f72fce4d99facb9dd831a1554bb2c37d5d5107855092146c91e3b25032
MD5 5815d10343d776d73eeed67e263dd803
BLAKE2b-256 6f9775cbf747ef5ccd29c7556c6f95a731ec1296c1f3d7ee029f276c6c536608

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.802-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.802-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1d51b13aadd0ffcfad3e2660438e7850ffa92fb4164cc07e9c3678a1a5648321
MD5 1f335d471550669078ce5f43dbccc8a8
BLAKE2b-256 438bf47e4fba0c6bcf33a659768e5a855d2f7e4d834a1b15b2c613f710081224

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.802-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 20f19d6092f38f0be3a35c504eb34b10e344cb0c81f1ddf4b00e377e8efe9dff
MD5 edd37d4f30c4ce7afbebb8413695c461
BLAKE2b-256 75da977b4f438ca51595aa715af4e218de8e2af297ac00f749e9547fe03ec6fc

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