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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.4.8-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.5 kB view details)

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

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

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.8-cp311-cp311-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.4.8-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.8-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.8-cp310-cp310-win_amd64.whl (117.8 kB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.4.8-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.8-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.8-cp39-cp39-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.4.8-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.8-cp39-cp39-macosx_11_0_arm64.whl (120.0 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.4.8-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.8-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.8-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.8-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.5 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.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8ffbe5353511f5d2d693210b692f55ddf64158616718d626e93b4ceeac194aad
MD5 45c4e2a532d8d709b470092cfc4671a6
BLAKE2b-256 cc4d73816c9816cd1f30dfe2489dad80287d5802db551abcc05be3dc3ecab08b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.8-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.8-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 02695a5dacaac76216c3667052598ac9c41d936ea633f3588dbae80c83ea8508
MD5 ecc4b6ff1ddf9f6c9f094253059fd7fd
BLAKE2b-256 e14dadda77421eac737560c9ef9fc08f944375ad18c219016130494862790651

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.8-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.8-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f097ea09f23be7fc2cbb18bf120bbf5fb3c8b0bc25c54dc5dbaf1134052b5983
MD5 97980932c933ae1f26ca9ebdce772e3f
BLAKE2b-256 939ad9be53c40a04c0b7cb5318a04c1a31f156842980fed77038bb30be81d3e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e0daf893626765e950d67ed8d1c870a19b139913251b3827e413117c9d49cb9
MD5 35544719f6720c71afba5fc7819eb793
BLAKE2b-256 cafe4f9e35dfd2c25b0e3ff71b6fb53294e6be18af4c3b2500f9123505b8c78c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.8-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a6e6a1054340e6ab3817371a0d109a622f9d42a40f5ca2470defecc50beeecd8
MD5 2c527f56fb20d3664a99d971936bb58e
BLAKE2b-256 3f72430e0874378af56f607272d0f3d5925bd726b36279976568a5da1bf2704a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.8-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.8-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 50e0608af937177d2c5e39ee07850e34bc8451d12ddf188a3f9bcba5d292a391
MD5 800fde30bc97dff799f0dc4ea1030d39
BLAKE2b-256 30a4381cdde6cf260b49915781e508978bb54e109b8e68696885fbd6a1077b2c

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.8-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.8-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 54a92b25326de9a5ecb0bd9648d12378dba43fec0723ca4eb2a33c024f37f109
MD5 b404a0e4cb7ed5140878240448fd2213
BLAKE2b-256 5f1761b3d3982a39f3cdaaf32c1c2acdc948045a1395f2a8a7aa77f7a293bd18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e41bc3b7e13880c1f3c38b9ac82731bc4592b5e2a931d939fb9e04a0587e0ea7
MD5 7e28e8523f653177506f89c0ab29d533
BLAKE2b-256 a2f1f932adda056c07df680ab14b1c6645d9d8ba3e69b34262b0583f46c816ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.8-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.8 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.8-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b35b69dd14de6a8de6d4e278f7434cf3b65d697981b84162c4caebb02d0d8b25
MD5 8d33c55bf8004f07bfe4acaeef12d40e
BLAKE2b-256 4070843ec9df40b6298e3bb7ac2aeaa69e231c2ff0203f3e029f1b08e739fce9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.8-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.8-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f164c9be28e0a5fe8489676985dea6ae4cf1569192e21755bbc8d92a5b714f50
MD5 a9405fe3dbd3f9a478bf86ccc036a1d3
BLAKE2b-256 680b1815fb51d664640bc784896f6c95b9f533f257c2846ed32726d526c87f77

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.8-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.8-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4bff72810fea47ef30cbe15c1333fa92e6b419f298a12fce2ce8ebebd381f3da
MD5 295cd1bde7e089e82a5a071983dbb917
BLAKE2b-256 80b1d8f662d1f7823aee85042f77175bb2816246957794a76c7941f5e3b92ae0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.8-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e8de793e004b67606b93830ed4acd6f00acf254062de8ce78919b484c8abd781
MD5 e1b66db335b87d3ab1d44edfbd5b060c
BLAKE2b-256 aa980afdceb2a99a73e9373a1935f5bfa8f8e4a8d2eb6e9911476fb717e61500

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.8-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.8-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4797e71b1a0995b778414f546dd074b26a7ea54c3a80e22838150a485f9a4936
MD5 a57c5d7cc165224ebb5b990601b6e78b
BLAKE2b-256 5e08541fe6c2619dd2e4f8d3e2012e6ed5ac65594466e5d77423ddfd5553e144

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.8-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.8-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0d222959a8a6d298f3c05466a8ffdc3ffeb02d778a277464cc22f499424a6e70
MD5 c957c479a9817482180eaf4c9d992bd4
BLAKE2b-256 922544b13948c169dbc95bee460b3e7a8d946d572b7606b6c948b8ad1602c66c

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.8-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.8-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 66e92c2a7eb3dbe90c4816ea07b3a31790e1176cbd2f680f9ec102da93c0cc2d
MD5 70b22594a003fc1c852cfcfd6ee2c2a5
BLAKE2b-256 f168d810e735257c9eab34ab04369e72b84bbe2a99bbeceefa6ae2d360610728

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.8-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4d83bf94c563ade25617050e902fc5bf80aabb3843ccd4ae7cc36eb102528190
MD5 9212766690446e30f1dd03242655562a
BLAKE2b-256 bc26ba99c312077a3e45f4ff1a52bb9e56406c11014f533d713eccac25b9804a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.8-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.8-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 dd88a4dc22ee4328f63bdf98e08afdb418ec5ba906456d5f7b5a781f02b034d7
MD5 403a1ab41860368400d2ab7599030fae
BLAKE2b-256 85df1e1a855f60aa435f1036d0f533352d0acdedb27e90cc5987d3795b1e5478

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.8-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.8-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2f1bfbd8c2200351fc29bbb136bece95c0f811989769c4e0c83f41d4a50dabe2
MD5 a70f40931305ac9a76dcc9d2771e603d
BLAKE2b-256 03731d9077390b2660aab5aadfa9db2c6b174e1a02e3a7715418cbbdb346c145

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.8-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.8-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2396738a4095a020f324f9c4a264302762d1143be5c0032c002d2c8c71474beb
MD5 6e97d892854a5a001a362123f752b76d
BLAKE2b-256 7a229e061a4e53b9275afa2b8caf2d61c259f6f7afd364e1052d63143c9c14de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.8-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c191bc60e93cc66cab33ad41d877d4937d0a387993466833af074d4020c70614
MD5 565de5e1dee68c18f8ee9eadd16af399
BLAKE2b-256 42f336cbe1104555173f9025764abf4de602b1371ab573927efdcb5d66658c2c

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