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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.213-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.213-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.213-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.213-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 55fb54b7d256e40aced343245c7d33732765aa24c2814ce47201518abc579d92
MD5 88744e3f0e88cfb9af6db679fc685608
BLAKE2b-256 a75d3b89851c0e23853f6332f8841c8b3682ce2a031918b9be3572693ae602a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.213-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.213-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8c712c7fcfcedc066b36be9dcfe2c0d37c2972828908778cd54bc6b0d615f384
MD5 1c4a7d48d79e0e4acd8bbfcf1d7b5ba2
BLAKE2b-256 ddeaec418f521f50d3661e024c24748b5844fea62fa1108cf95f9c8926c23f66

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.213-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.213-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b3af95a011a2ad35ca12240f57abea507768fa1a3a6a2fce2561f545f4276436
MD5 b6dbf3b39f13aed4044feacb62ddf4dc
BLAKE2b-256 a4881cd725a2f127874f8c3cec79ba3ee17960ad904bbe590fd848025c8b08ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.213-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 de979d6e292316e512c667e682760048a70430c5d67bb4ebb25264af2b38c350
MD5 0f91a898e7734aa81ce16c8cf8da4a92
BLAKE2b-256 7c6326d4b6b23845d449cc2a073aef5a05ac72dec5c1ff2d8911fe4865e4f220

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.213-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8b9b66174326694a71b6f4efcdaff12f2cb8ad5bf2b0e39c1a9b01e0b0c78c4b
MD5 289be16bcd952efcc121496a660cae2d
BLAKE2b-256 e02fd74636de80406626afe0a6eb584b40309eaa79f3ecb682281d410792a5bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.213-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.213-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 37cc261c6d4ea358a87793610ef686dce6880de19190ad11ae70d9892cf265b5
MD5 703588bff675edd8a3d604cf6d555c9f
BLAKE2b-256 a80725dedd3a08c0de911bf486039dd851e8d7caa5c6d43b926d4e493f06f9eb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.213-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.213-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f861f0bce8c27584215b9d461d87374f54d7fdd008a3f3d121f65ea4ea77a42e
MD5 a55a429c2b45474ab23cb0a97175df4b
BLAKE2b-256 ee8b2c791fac506d73b3c33fd1661a67baf1bff962fbf3ca90847a2f86a29a1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.213-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cfc03f532297e25c15c2c52014f88693caf4d7c890193f0b6952574ebbf2b55e
MD5 a8667a64f200482d7a34266c8947048d
BLAKE2b-256 7a2c02725b80650d49534ec57e079292f3341ce140f410e7468cebbc1add270c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.213-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 16ebf17d5a62d576cccfb899ac5709fa88e6c6aef185caaad5a135969564fec9
MD5 95e7785394813b8cf0a3a091d416049a
BLAKE2b-256 fe5acc5bd6c16b9621409b5dafcfe6b09f2ea9ab41f97c44b590b21ae713153b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.213-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.213-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 64a4da18a6a486077a72d3b40c896b242bfb40b03922e0ccf080e4b4d8272dcb
MD5 36e2c4711c392bf07a3abe107bc5a3ee
BLAKE2b-256 5beb97197ba14ededfb1b0d980eb44c9c31a68525cb5d9fcad65e0e301a1128c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.213-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.213-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6318cab3787cbdb23b4e1469f640d30e53f31af21648af1e5d796c2bd2050998
MD5 41d90c501494d9f9e94f4ebf175e72c3
BLAKE2b-256 0707fb8f67a18399499f94689e22f6cb41b265bd04a313a7ab1f9ac29040586e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.213-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a11e8edd3d1fe01b1df0a16f80960ec6069325452a980af1735bf1cb9422bb19
MD5 dc41b8a9bc3064ff40bcedb195304f98
BLAKE2b-256 06351de52ed98a66a984a4d797c8439cf871e9a30d25ae05f60e6a7b58e92efa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.213-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.213-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cae676aff1e2127154b32dc9bc242e1a71cabc81e592b4b93fcf62cf4b0e5c8f
MD5 5df3d6627fc524d2fe9108aa20e0db02
BLAKE2b-256 65bd1646884996ddb80ce33f5bfba6bae41004a5ed35f55be02be012021d1ed2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.213-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.213-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5cada0aa72d053195480a9d5589d1ec8660ea37afab0f9c07f2246626d525ea0
MD5 e0299f7531aac145549d7f894009c0a0
BLAKE2b-256 bd5bd77d84c163e948adba1ee74dffe301fbeb92b8464a08834a821c63c4558e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.213-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.213-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ce4ee6f65f56ea4f33139ebea874625334786bb0a0b5c8b996a70fee546cd70f
MD5 33628650c7ff47e66f2cda97dba7d15e
BLAKE2b-256 6c3a7834ff2143e02fff86f63922454da634d629ea1e33a8a745d0a062229368

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.213-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f305ac49e149548cc11a4bfe0f3598af1574d0f14cc1d8c03fcc946893e903c
MD5 a4d1a1535f665ab409370b816ac6fef6
BLAKE2b-256 4516b035ff9d9d3013963b18013ad3bd43f92b500f8fb5b24da28f21d0fd2236

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.213-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.213-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bd2f71c39a61a9649f14e821d5c8deef5e4b733aa9f10bb90db7ac646f6b251b
MD5 41c08f405e966e1e15899f915cd3bd52
BLAKE2b-256 f78a59b9460c12734ede255b0874eb401c6086be3a570ae366114483658af6d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.213-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.213-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f147b5c472d8a31d8632924b78c4a7abcb9f1c50dad4d87a528fe22e8abf7c5f
MD5 f7b6e28687076b10ea587768f85dfb11
BLAKE2b-256 245ad3565840e871ae3a689987b2952cf231ab943643f29b6fa6b9c63253a3c6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.213-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.213-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5a93a95d01a0cd816df724cbc6ebe4301cd46013933b4730761a87a20da9119c
MD5 152fa581605748398f406f855a37a937
BLAKE2b-256 df444f2466538f7b366a983221dab9dc3f0f3c2c6264d846b545fb306abd141b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.213-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 40dcddb5fe20c38ed3c225e573c5ef93ee209226c0c88679b4400928e2b0ec03
MD5 10e0656861ecf6787d30e383a893c6a0
BLAKE2b-256 a0605820bfbf8e9ef8716e25fe6a5097d49422c717b52194bfed53711c844fe1

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