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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.389-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.389-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.389-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.389-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 858818bd06cc7fb7fac0ff43604180c31342f17d9afc263186e037709f85fc9f
MD5 3c2641198a46f5d1531d611f1e71fdc2
BLAKE2b-256 6a34933ffaf30d04df5f25919345648c018eaeb3d0815b0b6eeff35c82c19029

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.389-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.389-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1e8aceb9298d8160b6e4bf148f7f53bb06ae43f157c9b8f834e0074cbc25d1c2
MD5 07dac6bc2d9d5e995824fa5adbdf3ffc
BLAKE2b-256 201ea15be4df7637c6662b68a950d5b058a0a44278b7e8cc39f9f9c6e06a5d5b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.389-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.389-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3c39168b782fd85500a10eb0e377342b1620ac129674a4cdab56a5d696cbfbfb
MD5 07d9ad48c36a7f249eed6fca70bdcef1
BLAKE2b-256 cbc9299d1bb9bbb5f0e39fe5f79eba6397028061a0f70d0fb220dfde849e34b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.389-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a864aa17ac296fefeffd0ddb81dcf342cb507656f5c1e0b856c7e072f18a0da
MD5 1a9e67e3a7a2b21830a646e2a540d8b7
BLAKE2b-256 5dd293c845e8220f07329de4ae4a434b44966cc0c990ef8286fbf2093225eca4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.389-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2cf76852259aaabd49e3c8c850000ce7d4d7dd4d6f267ca959388de38f8fbbce
MD5 b9db89cbae94b3c6fc08a17938773db0
BLAKE2b-256 3ddd4c51efc5801910de3642224976f9b69ab708030d0937e885eda401a56643

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.389-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.389-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d296d5d36d11d11452b6e3859431870b3525037304346d4faa50f07c25b0e455
MD5 e05d037a90fddad28d6f78736a401f86
BLAKE2b-256 d5e25ef36da03b77c45704e11b7c7ba67bd7db4cc953f2ea3057900a63fcca9c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.389-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.389-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8b36c8ed306890972774dc7f5ddea784e94ce551b97d3c438af9aa88760c4d68
MD5 b810b15602b78c601736d063334f4100
BLAKE2b-256 e3ed03384f286da7d7d19566dfa40e4ff621852adafc9787b366923189a3b290

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.389-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a250065c80a4cb9d98bdfd5f124d89b5b63825087d93ea6679734fc1aae7fb5d
MD5 31abd18578904a9c7e52f8189b588d4a
BLAKE2b-256 e5c8e61424028e5f2727422ec11a77a6cff95d1e96cdc9d852a2100a14d0ef31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.389-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 caa5afcd469b28e50a171a82b9b9ddb89130e94cf1e2b41f23568319f80f3e07
MD5 6c910389bd9f862f6c79292863946625
BLAKE2b-256 7c7f8bbb581c078d17b0bb0bf137348b99653ee018e813407e92cd48edf64389

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.389-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.389-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 11b49bf36e20ad45494bbdeffaa3f7171e67879caff4b090535190aae1addc86
MD5 af461fabe2ca0c9a5b002720b8a080cf
BLAKE2b-256 9d3c3c05578391cadd18b625320d39975b9b4faa528daedd9a4632055e5c4344

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.389-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.389-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a737760d1902f3aebe22abbe6fe24bb352831e47ec1ac353b479066e47a3d286
MD5 645e7f07216b738d62e951ff5a7a168f
BLAKE2b-256 a82895a8fc6b68d0cb5d4ae2f9641b725403f265575637c6193c4cc10268a77e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.389-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5e8ad0174c43d53a02e4425fb78afffcf8e5800f2cba95965043097c7b2e76b
MD5 43b70d715ac77827ddd4e32f1688fcb8
BLAKE2b-256 c8a7d629ad1a0cd02c89321dd44a5d721655c90d739caded7a56c412c9a2c020

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.389-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.389-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 869f0999bdc74bed7bd1aa03e914b3800a321d384d88a3b53e0c9e3ab6ad79a3
MD5 bbb86e635d5e0a086b8acf05328c9783
BLAKE2b-256 3aba67db207cd3758c07689b72a5a0f9c3613e43dfb9abd8975b7ec7eb8f4210

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.389-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.389-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a7e13dbe75a7b786186aa31d4193d07065011e87ea03855e5c17f791071b6805
MD5 e623594a9b37150b9ff24f151f0f8334
BLAKE2b-256 d4a335dd7bdfb6ea09ca93032722c2720ce9c98b4f39899fabd186fb9b9d1316

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.389-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.389-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2e400224e40a6bd48b0e784eaa3104393dcbf1419959ad720bced3f912a8b662
MD5 dd0f4d2d36280060aa40eaac421a4637
BLAKE2b-256 d081fc4868e9fe3948933151c82c76ff8532ed33ac3b49b9f1bde0df3cf887aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.389-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 759d0467880c5f876848159d586646107a1cfd13f73903af5ec2bd1b18442ce3
MD5 c3e1336e0aebcd1cf674137014ba0b9a
BLAKE2b-256 4b8dd222ddc51c106a950b6f0568834a0fc308fe3f34f986e77d6bf4301e2bdd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.389-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.389-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1fca850485e2e286df554c62a34e17f7d6af4879dbc2d9c31946e983a3536af3
MD5 7d7b05dbfd1ccd0e08d8a41a4aacf9e0
BLAKE2b-256 f62e3bf0de104a157afd7db118153305957400d7e998b323982843ebaead119d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.389-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.389-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9edfcd6b6127cdb0374e0d0e9d2714f48f3d3b02cddeb3beaea83a56b81ebd3c
MD5 fbf5ca81784fef0a554260e93edf5d78
BLAKE2b-256 3c8316d7a15bbef37a6b375476ec3f2fe595bd77a880fb1c409315ee7c10cae5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.389-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.389-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dd1caf70e815efedd0f61a65833c65dd495b05798e90590420492438b560f3dc
MD5 5ea177c97bb1d4d6e45b1aa3b8229734
BLAKE2b-256 36b2d52cddcd9c80c3d02deeef278794823b4d2086312817dbe33663a093df60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.389-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 754875157320f5fb0d1dfddf5265166c2dc0cb27aa7c04992b1ad8c2ea7ca83b
MD5 a75657bd7700f69604faa4d7a1911694
BLAKE2b-256 0d8c49b4ab4c495d4d20c586b59950447a833dc6fd8aed1552512d80717a6b9f

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