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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.167-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.167-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.167-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.167-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6204c9c0dec4dfac00fe7b5cdd384c3627b7f5ae166214f1af100dd8f5a57481
MD5 7f9a7ce081076bfcce7fd1764ce053b4
BLAKE2b-256 069b0e3aa2c3f998c249142ae59b257ba18d61beb6eea9d462864cdb6b56656d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.167-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.167-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8ac83f65dd8f64c4a3ea037b3a116c6a03f58f30b3a3ac63c3783cb84eb181ab
MD5 7cf3e0f8a14eab726a0634eff693cb34
BLAKE2b-256 c7141ae4d489ba9231d99d429cf3eb4df301c29b5fe39df78f39a1b6bd0a4796

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.167-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.167-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aad33282506e46d8802455b2a06699f89e91237982a7556f10ebaaad51705165
MD5 2dc51e3516e940dec3f4207a827b042a
BLAKE2b-256 66dfa444019da5dd422c013abcec32d9a1bab5b6f402868243cd3db2442463a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.167-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0a85512cad956202bd22a76aa153da1e6ed5bbb914d120f09d5969f0b998fb53
MD5 d544a311108dc1dff0929b1758a44880
BLAKE2b-256 4137b4c5a9330669951213dfe12d4bee320c84052d7664e8c6c286d46be30899

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.167-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e790c64ae5acbc1444751fe5dcc254a46402944b215b8fee80ee6141df5f9c5b
MD5 b55afeb6b84648b5c2daf6f19431eb08
BLAKE2b-256 ac3d7a472c27f6221dd2d2d72cad72ad84caa5fc1b414f3792ed1defdd6310c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.167-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.167-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9cd4325deb241dff2d777d3468f85964d2411c11037c7187bba2311e8d6e6998
MD5 ac8c0941ab5fd53186fd2ac1d4ed2ccf
BLAKE2b-256 690fd4df8e06f6168e52590bcb53d9a5bf86ba47a33a91a4f17f338bc1a37ad9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.167-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.167-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a2038bcd153cffbc47722f04b3d1f91dad979f4403557b18ae183b590ac88f1e
MD5 91cc679c979c7a85f88937555808f08a
BLAKE2b-256 70acb1eda7159e174e884ba3093e5a05a5c06efb2d2ac96e41ec989355626f29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.167-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 18af12c06cf504cf02461441ba5f82f10c497a66c3cc8bf7764185216ecddcc4
MD5 90bf7cc276d6cb05178e2a3f477621aa
BLAKE2b-256 a2368c12933067369092b2bddcc5800fa0936936e5165aa318ead7f20cb63d08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.167-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ec434a1257e05f7c229c2e2170a6cbe02f2e7a1217aeb2310e14a450567f6765
MD5 40d6fb31867c9c368ac69573a048795c
BLAKE2b-256 1d1ea9d1caefd61be8d68c2aecc5f4faf1213ba2e4fe603c7212d1d0b44336d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.167-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.167-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f379e2c679e9da37ab1d5d2d49ffa89b240f24ab48c6c29b1c71aba74287965e
MD5 c5c52ef4f5a799a7f1a885a88d8e649c
BLAKE2b-256 d0361bb3a4ddbbe7863fe2e2b5a7c45d68cdf8466fab553f9d14e845d37efabd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.167-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.167-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9cc038ac77f61a3e7cbebf2c3c2cab7fb51574a9a5ea8a0006e039c3ba49b252
MD5 aed52f52fc0dfc31d76a9ba0cf963185
BLAKE2b-256 5d7b5bf49cb9cfaca3e2fa1b4d5d31a91bf1e99a7ace9029686ba1ccacd26ecd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.167-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 27bd9fd1e3196bd95ab19b41d6e6699e3852553598af9463a6eb9ab7759f5274
MD5 474facb3794edf374a8d1680cb247ddc
BLAKE2b-256 120d2f4ee0d46e2f8f3e708849485a3d16154a3e6f5cf35156dee87307c9c09b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.167-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.167-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8f2f07dff80239472fc71b3cb3d589c0fd4ef16961c184601cae1d5b1f0567e6
MD5 0dd458cbb7dd0ec60b5a58de0217d77c
BLAKE2b-256 50b790caa6cc2b8326845fbdd19a70f6ef26f80c2046db2d9270d979e9e6bf70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.167-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.167-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e5a8e9e9f00ee8329f6a07c6ba7a428a921d04cad41cebe19f100a9ff520e1e6
MD5 49963d14306d5d847938dc523bca8086
BLAKE2b-256 804755a98bc7c274e5dbe58d3b2366b84956ac47cc4f553df9d1f6dd776845d1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.167-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.167-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5910474452fde337ec600853664bdf52a0bfb5921a3dccc491db3f55bd52cfb7
MD5 fa7789f29edb51d4b360f06196ae30ff
BLAKE2b-256 c0e57aa8fd2f9bde167362c007bf6aac0a7259965aa3952a4936a86e51ab32ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.167-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 052caccc8e8d6c35b2d4c5ba4aa2e936ef01ea1b9ccb731c636114a5c1d680cc
MD5 7a7971e99414d5207afa712039f8dfe0
BLAKE2b-256 d218dbd3f27123bb8a9394979d2d59515aff3e6bc47d6563b338b1e2154debbd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.167-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.167-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ba9bec5de7e92338304a6727bf948ce302ba42f351032453dc8ee784f47b8be3
MD5 48e5a3f4736f6a98dee23030918d4398
BLAKE2b-256 99a1ac78b411215620af45d2e892ca2a750ab77a86765d1edd6d0e3358ba16ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.167-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.167-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8a93c4ee28cd1b64440e3ec462ebdd66b210c30c222e35164d55a87dd2dc5fc7
MD5 59141715651a543edfd457b67355e6f9
BLAKE2b-256 7cdf65fd7d3b5f7c6f8e9e4df594dd6c72296c3a912e0f0836f86910f40f5da3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.167-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.167-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cf22e42a5b80723d3895c86eacd39ef8877c88f361d134b6b56aa7b55a39a8e0
MD5 6633f69c19dee266ab5c8aa67db8cb3f
BLAKE2b-256 6b18d6364e6081c3d8a32ea17b985aebb66072e216c41906e5fbb2f10f1a2f81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.167-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9be3be38550389a098c694dce91958cecf9a863959f64b5984bde40835cca688
MD5 4c3b43d02ce9573664dfcf86f16950ee
BLAKE2b-256 10779d0532cc7c943db951008afba8ee682fdf3e101ac6b8753b7130790aefe0

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