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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.670-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.670-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.670-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.670-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 09269ec9a8dbf324c3437ed4cfd906fdbc22949fa02016ef8dd3c1949db7d1db
MD5 dbfccc24ae8adcd4b33774c0203e46ee
BLAKE2b-256 f559b7b9d20f7d0fa4810a2b9a0519cba2602efbd1a04a9340f69853a4cdcccf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.670-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.670-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c7a14b063bf376f5f5d999caa3d567039f5326d501df03a58c23cb54a2d1e103
MD5 69b2ccc9a3a1c2a206fa4d0f1859ed1f
BLAKE2b-256 d5e0c63b5b0324e22d5009e0299918730e1ba4dc29974a2176c09de961d53a77

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.670-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.670-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ebdbfc44433fad3d26f9885dacb41db66fa3f01ed332ac174a5871c0db49ce38
MD5 cb7bb3acd37a54952998520db510abdd
BLAKE2b-256 dff5a55dd0531ce35dd942bc2b23c562562db95691617bd2ccfeaf5beb61c0b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.670-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bdc5c17c4083fbfe1f33c0439491a234740613d9f783c8598ddd5d9d9f576f19
MD5 8a7d7fe77c575431470776c8701a33db
BLAKE2b-256 5b26bce0ba959daab99229870f5119d7e57e3dad8feeb4be4daa5a9348859ce1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.670-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b1ff5ba8769f17fd3fb9efd32cc48d2eeb791466be17ea3e8afe414f714d2322
MD5 a230e4a14bfdec36f5661e9cdc332476
BLAKE2b-256 29cb601e5ca1024912c5431872593fa06c6374591c85bc110ed95349450a190a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.670-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.670-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 291ba0531c7397f14e1a80000bb81cfafcb4b4a44f743d3439ef2ef2db099f4d
MD5 40062933a9a9121e6975d86dd30d195f
BLAKE2b-256 d21d7dd35113decb13a0ffbe6468ba4de6f927091ed330067e9035b3b4b46071

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.670-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.670-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f29780053c0687b6c6819a9981bfacc898a1a77eddb30e4200b783a6c8aea0a2
MD5 bbcda556668701a950b5b7b94c4fcd3a
BLAKE2b-256 c90ecf91c0405535b59998205eb77fe259e8d34f517d992b1f28a94a7a9efdf4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.670-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2887f3c760a5460df9e62a7fc4605aa9725797b0ff91ae6f650d1ca926e24ce5
MD5 bbc46179f3cd41862cfeeba2f4ca9c06
BLAKE2b-256 4890c6f81f763bad7ae40ff45ab64cf11eeb7905c31237ab9525767eccd6b3f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.670-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 673d885b685b1732734f436a836e2546040ab74fff7e5fba4adf46d7a42b3c6e
MD5 10077e4d3876f6e10975bbca87354f15
BLAKE2b-256 115633468da0b2b501ded96c655402be44229f4f0706af2dda2f07d54439749c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.670-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.670-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ebea59155b9135cea94d1962601b39425c1a8aa20f16f3d4e98cff6e0d9fcc6b
MD5 5eefea1fcc0fb0e7858aea0c576a065c
BLAKE2b-256 0fbabfb5870828efa6c1d95f2e89946401e910a3636cf0ba550ebd47bc983f1f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.670-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.670-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 db5e25600d0e884e1f848fb9a97c6b8c2856b967b8817aafd440c92b19cc9d89
MD5 a1ffff146492de9b3294f3c321e0e17f
BLAKE2b-256 52396ff24a6fc45f34a8823c03a19cd2ac7c98f9e0cedd20e0a5800cec5c9cd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.670-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a0b1b562d574e846592f0e071ff4098e3c051c4d9d9eab7d10283c8b7d17174c
MD5 3c6631f71f2e63fdda11ae55d9b1c6c5
BLAKE2b-256 0cbe0492d922581938043b707cec7cdff3464cffb4c12be4313e216883bd9427

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.670-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.670-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 900aee5db77df245472754d5efc549c63344a2d71c5a207bbbfda44836e03afe
MD5 3483d6521fd0e990109265159daf7353
BLAKE2b-256 14bf2ae6a332f3f9f9417676671a1c29d1f80c8d04a8be6ab0e25ff3e02f2edf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.670-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.670-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 db3202a32f4e9f5f07a761c18a10e6d3f4b1ae27397ad4e5a9bd10c0d15f2bdc
MD5 105f232be2a66cbb049b63efb745e442
BLAKE2b-256 d45a8762d2c140ca31a030fbffe8f95d73629f2b75acc50a5bc1ffc0412f1138

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.670-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.670-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e293adf572ae6b8bbb60f93354a54144d0e4ffc8dda29d49a9a9b2f05a66cc10
MD5 bba32a925496425865f2d770047fe4e4
BLAKE2b-256 980c2d119a15b4aa55240614d3623898f2ef1530ed6153a4e7e5a18767bb803d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.670-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b5c5d5542c83bd9d87193f912ccc43113169580b0106563dc3f80fe0f8124011
MD5 771382d618ba78450a07ffc30ef9ffa3
BLAKE2b-256 dc93bc0939667e2748c621e99075fcb9e9f44fe450c195557f7cf886fbbb9824

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.670-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.670-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 abcf7f5179dea3270b3150bd7dbb5ad408584c7011f2b489e4019476f86dbd44
MD5 0445418bd2efff2254b3afa11e09d870
BLAKE2b-256 d9c29fd67a43ee5e04fa5d979efc8401220b111c0710b4a4883847be7d59bfdd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.670-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.670-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b964300d9438db2ba1dca3b22086591836336d2383101956df33a6572a5875b6
MD5 5b1bbed9be1e5ce4046f0d2f818bef6d
BLAKE2b-256 ef78a024ba4e0b7d41674c0f0772b6f1a7212ac471fd2aacab4b8101d552101e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.670-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.670-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 61408f4afa78f9924c8bab73d3efcf639fb0f09a724f5bbab2428adafaaa95c2
MD5 6f7aa883b7cf47c131cf63c66ff20990
BLAKE2b-256 56755612c5bdd101a84676ce5b43c458fedb5865851815db6952c6ad0df88656

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.670-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b100f001d84491db00648da0730f70e98965c059233eae88d9cea2c00fbe81a
MD5 2ae7d512aa519760bb5fe737668cecf5
BLAKE2b-256 8a5dde077c3aacc3918f4c3d4c0177200910bf74272c35dffbc73ab5bdbaff7e

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