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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.510-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.510-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.510-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.510-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 79d9993407fad2149e75961c7dc1d1c126606d83907f60cacd6379cc486740d8
MD5 4658f220bd234114f8d8b675fffe4025
BLAKE2b-256 cdd7cb13755ee09c8c2836aeca29d52f73608ab584679a1508da5bc720763409

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.510-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.510-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5523328c6e1456f94242419c09c9677579d629274ba187ee1d405c0bf722958a
MD5 4f29210bfb83f7aa53f2261cce377979
BLAKE2b-256 79ece2126545841c46c726d3710494ea41347b48576ffb63c6e70c6814b8029f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.510-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.510-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c328464373e8b4a9af60e820c39b7333138c5f3794d6ae4b49d3b1a144580119
MD5 1e76518d902cb854285be864f2a0c6fb
BLAKE2b-256 f6e09bc04679b624a50af53ea30f984273acc57a7b0ae59f85f15f4c0077120c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.510-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab7c694fb3b7505b53ea5cd5876c27d8541ff9d1ae1ccf4007220b84fcb05902
MD5 dc3df4dc9d8d8976e0a8a705a87dcddf
BLAKE2b-256 2fed4dace746f1b327d6a895145f1d70977553d2b12d5102b3292ac130d87d7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.510-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ee3aeca15e41356cbc62bcf1513f24541d3ee8ee43ee8bbe197fae86829b8b32
MD5 0f14bb1e4fbd3d6e81eea6699d78a1df
BLAKE2b-256 313836529605df405466cb3ba4ad3b48fb99ba20032b8bc430688911c17dff9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.510-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.510-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ed11f567009b3046ac9eea0f4c4eda26b315c97cdc0151c177d72a0493031d82
MD5 446264aa4aaa87c20ebce778a880a8ef
BLAKE2b-256 41e46d3fefafe41c7af56af3da7cb21309510ce20f5dff677239d33c94e2df00

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.510-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.510-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dd9193d5de9714dbec1a893bdf94a756c180326e1b03c4926a57ae179576e029
MD5 799bc96d2b80660bbe1106a99b1b21bd
BLAKE2b-256 2245c2b5f04dd9484051fd4837c0867f650c97dd25ca274aac11f0c2f5511ac9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.510-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ad7cd2cd4fd3488e47aed22b84f3a1b5a0703d55e272c577cda0eab12a80c80
MD5 61edd48b18f4c51f519985b4efecc4f8
BLAKE2b-256 6d7d950e161255b7031677a2047bc043dfca90e142967557d0723f7f31e8c926

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.510-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8b9945e816dce83d667c57f4b558fc109bc15a12f2e6a1f2125edaccc0087e9c
MD5 bfe03f1d7e610d91c3dd6257968bc8d1
BLAKE2b-256 b2e9a2a30441f339138d233e861bbaff33c75fdaabe7ec794b533638a7e5414c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.510-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.510-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e04b740e07711fa1a22aff1fcdcce1dda69aa30e594a39c37c7011e19fb99430
MD5 eda768dddc5549169d058b4d5a104410
BLAKE2b-256 647bec9386953fad867ac57f62b6f724f415dacbcfa3cf0d15bfedf3426b9251

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.510-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.510-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dde8419ce5c7e8d3d40307bf2fd9282ad9f1c59df6eeea8e28b5b05b2a52f6ef
MD5 f8b06d47c7f6544d078afa72d6376eeb
BLAKE2b-256 c56b02a57b6a640fd6646532f6cf127f45dc15c0ecb1b74523b939a4c494b078

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.510-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 544e5299940f73003327972994c32b23780b2a506566dcb496e6dcaf9e1d19dd
MD5 a15016d21ae6cdf63506f61a0a5bf9af
BLAKE2b-256 a4734c93eec915a1a23a575e2ce3a8368a91dc20bf2311df1fbfeb541e90a030

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.510-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.510-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 362ed156d02281ee57203221b3aa0663b1ff40d3a95006e1a39034dc3c9a47bc
MD5 e7540f0ba434c65f84bd6d03109aaf2e
BLAKE2b-256 0770c005cf70e8897fe9a9c94d8786ae8a3783bbfd90a3fb943d78c50cb6b3d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.510-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.510-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 791d88958aad8f60547ffa2a7d9b064a9ae13b64429bbca385979873b50bd59f
MD5 ce382d6e666fb7f4d0f71993ff86ba08
BLAKE2b-256 0166a787b9dde41c11b818186154fb934fb8b7091769fdcdb1ed140598e7e221

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.510-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.510-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6c4966b9fa7905699ba32f0d9a27af1fae2083c304ccba81bf4b424649bba3ef
MD5 e9dd74178221803f199ef52eb16fa99e
BLAKE2b-256 9d4faba82dbdd84a711ea6a4af31801dc80d7706c77ecd877d5f0b1c7145586e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.510-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61e44accb411ce615b2a0275a09743d12ef09ef758b3f926590c499eaa184707
MD5 fb9e439058ddccf5bb9bad0df3ce6101
BLAKE2b-256 f3d895abee1b7d419577bc881619b70ac4b74b0698334e2fdda300c0d24b8b4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.510-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.510-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 144737b583751a01dae580a226381ffc69e27d1383a0c85fd4a2b17ea43a00ca
MD5 ae7370db4e828d9a524d2fe73d7dec8e
BLAKE2b-256 288a5cf099fef23fff766aa484a0469c7c9d0d5875b892813014d8c94797883c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.510-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.510-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 28c8ee106a75d6648cffd97bee4af88cfd9322fc2656e27ef631fe7d6f599ba7
MD5 5adf294c1820f51ee56bc4491348e1d2
BLAKE2b-256 2fa0d40b220d3355ea55b0807a5178b11d241d1f284f123ac7eafe0e8fe4fa87

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.510-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.510-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3b72ef31b9f15ec9bf01b34c7957c2224b00589674ebf0f2a7943d85c33ba01e
MD5 bcfe2437c696636b8a4598d259b331c1
BLAKE2b-256 6202d50c216ef6561e54b9d597240749932583bb5bf9638efd92693a0149dc90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.510-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 51c130fc29c2de8da96991588533ae119feac3bc6a31a0f23cb550579375e8fc
MD5 d37187715f38c6cfa84b3c8e5766c8e0
BLAKE2b-256 2d84cfbb7d1cb659c61ebe51978a8b5b7079ce8c3b22250145c8e770eba81b56

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