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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.960-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.960-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.960-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.960-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1b1cd80669cb5a9eb3581678ee24e8fe5634bbfce94b605b7ca41d45b987d61a
MD5 9ac698c8303f3a64a9a272713659ef0d
BLAKE2b-256 f3ffec2b4f7521c65c517872ec5494e4813d2fffdce09a6fbc54370ab3a9272d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.960-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.960-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 bc79dfe3736d4e3a6b8979ecd655dc584386df3e3253a3fd926afa7fb96b58d3
MD5 59a2d57c4e00faec1ced7ed0e7a59241
BLAKE2b-256 5b45309fe08b3b54adeb6f5a7be5450df91d74ade00ab541ecaf7c1f7e066719

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.960-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.960-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3a83eee929418eeeeb713801f797e151e88c56cf977dfeff20d2e23724aa3906
MD5 6da829809d77a81d317cc72ddefa3a8c
BLAKE2b-256 4305ccede11cc81930991eeafbdd1a3bc56365e3fe15e4fa05a648731acceb1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.960-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f38ce1be5aa12cb83479fdcec770ce25dc041a6294ff8bae376e2a2870bb9b8b
MD5 1f591bcc8643f148264571fa846f7652
BLAKE2b-256 8a5c2fbb25e4ba97058b64e76ac81a6a2f01794f902a7b5abb5e02eb451c344f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.960-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f1562d44850199499b4ba29e43d0c551c55db00c353fdacd3ea57235b07fde50
MD5 aeebcf040e02ad507698e6973915506e
BLAKE2b-256 99a27b85849a2e7c4f329ff8bf40747cfe0515613f4db8b122812dc2d9fe41f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.960-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.960-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 84ab04a788fcca1abee28a43be422198772857671668122ff535382db93aa4af
MD5 6e62ed1b098a13972fd145c69bbf4d59
BLAKE2b-256 d0ff9702af0dd605247d97b3cda617c77e97511bef78cd06cca84f50c0ed2c66

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.960-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.960-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ed7f3c34af363a5ecea48d4a7abd5afae0da0683b11a90e9274d4a9e3ae80a6e
MD5 c0b39a7d9481d7c0c9e2bf1d779196a3
BLAKE2b-256 d0a4e446f59d97aeb9d3c71c1daa8473b7dbfecde445e600134e983dae485ee0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.960-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 da59c683dc97d22cd759b92bff96ce8200f1303cb0a6ffaa1b11ff9793eddaa8
MD5 bfa9783c9849ba1580359c29bb06e58e
BLAKE2b-256 ab85a3d961c9a75edcd45bf6747298953a2751e3446bb66dbc6adaf7df072347

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.960-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 576d5b0d5c87322681e49098e70e0b456529b99378ece8937ef3aa8bac3ed006
MD5 436932db70b8e818c8e477740b5acaea
BLAKE2b-256 1c6b52977ba37f7eff4480019abdc20a0c8dd28c187e754499991f2fee525db5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.960-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.960-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 60da1e3eabc0fe0e76aa3c7172ba446549e4189f913a46f387af3139d01df080
MD5 ff34377fbf44dbfb753adec4a020940f
BLAKE2b-256 e32cc7325aec4f5aa7594549fa114671316de7adc406aa63566493dce8accade

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.960-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.960-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0fc499dba64c5bc29397fcd49adb0127c8acfa79e9c944f9d4d8db8e1bd28825
MD5 c4e265805ef8fb80b64cd1e3e8f1a0b5
BLAKE2b-256 ac59cc64d471532f4847bc25c77886eba53ebe3f0f2c25ea71530509fa9cf727

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.960-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b7fe39e3c49db9ac22625d1fcd25f783499923df206a28a382c981c74cf3cb7
MD5 6e8f3d6c5f9a577a3cfb05a36646c4c9
BLAKE2b-256 252128102c6adfc748de1ae198db447ea33c2ce2bdd8dac7a720a4734ebdef89

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.960-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.960-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 246f272b4532cd71647cd65e08ef30563b984cb36076295a4d3c9ed8775f900e
MD5 50a632f02ceb28fb9a470956f4991b3c
BLAKE2b-256 2ccae7ac8dc64406642fd288b18792eb4e7ec44734d8ea4deacc7fd84b67c458

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.960-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.960-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9908fa57762028b3ec3c79864e042c538d7209d21f70a0d7dea4e84241b40bd6
MD5 7cd87e6ad4c3d610a5ea44020c162e4f
BLAKE2b-256 994847aa42d14f4bcfb4bee65db6c42954d77dfafa9ef861b884f9bc7dad7a69

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.960-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.960-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 954473278624ee4f03c89befbaa72bef5f1dcd5269ae5a2dfac4248cf01e04b0
MD5 20a874c12546340d5e286352163bb184
BLAKE2b-256 641f2fd08e3962b113d75933ed7e7b5ec5ea782377c270ed0958d01313da08af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.960-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 257408ebab3e073d2eae2a0fa3b47be5066303397ff17527e983e69feefbd53b
MD5 48ea6c81866e9c4506aa2ca34f4ae9f8
BLAKE2b-256 11268b9b26c006479bef9ee55c54f2cc29c6ce6398ba10c3eb789904be54dcff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.960-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.960-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0e88dbc136af686c71f953e08c80860765185ed15059629d4a3ec69d87f01e4d
MD5 b2c122c87618c62f2725dfc4a96a57ba
BLAKE2b-256 778bc00ac01bae072d7b1f5af472cbf229314cc68825e4a9ae375c3ca1d6580f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.960-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.960-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 da44b042d5d760de563284e8387a70643578859953be0d665f9fd7555394da54
MD5 008d595e55a172abe56666a0483eb442
BLAKE2b-256 f659bdead2d6ae417f173865aa1cf2b80e35a35db294a60391c7001560e81d09

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.960-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.960-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ab9eb6cbac7c7c3375fbacbb0c3f72006ea70ad96f8ebed9dce3258ca61c93db
MD5 b3efefbd6b9d1ac7fbe9def6e007665c
BLAKE2b-256 90db3faba09b6c16eae3ff9a9c5d1d40f50f1f01b462cfd13b59b6497f33d43a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.960-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd22690157455ddf542ce0a42676ee03bf0338ad68f14f8ca2e45fe3f51a5037
MD5 5eff867b2a740134e80fda3981d4689b
BLAKE2b-256 1b2a2826980ba38de66348d75810ac567a4b6043a637c0d25ae225dbe37c90d6

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