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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.58-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.58-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.58-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.58-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.58-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.58-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.3.58-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 aaec1e9ad6d5efd27ee67f80d3eb277c0c0d49ed03167a396eea7cd44f9a17bd
MD5 bf4d12eaa6feabb9683c88d94fcf1b9e
BLAKE2b-256 c1d68628ae01e1ca242fcf10170e57bdf1e705748371ab03e5f9f0ef8e4a683e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.58-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.58-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 70e95c32c3f4b3c68daa678ed372676ce41040d7f49da60a304170858dccc900
MD5 cebd784b0bdc7ff62ba5ed28b5f6f841
BLAKE2b-256 a7269011c6d79fd8ddc199216fb1d15824b5afb1abb1af4504c02b914a94bcd2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.58-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.58-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e8fa79d06ae8135b0a8bbd3b62b7f2fa81c5bb62e8eae9a44691c965565130f0
MD5 e08780d3ebd66009145337de3f897108
BLAKE2b-256 55104ef0eed5c339d77302239e8a1ac87a1f0ab14ba7d2977cafa1aa69b3d945

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.58-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cda17481b1597a3a488f1c1ba2d52884ab3693ce92829fc428edbb0fd288ffa2
MD5 5d130ccdc15da9ed0e75a03ac8ef89fa
BLAKE2b-256 16c2d140b9004fd1ed64b6617372de69e6a08c899a0f3e9f1f50926fccaed4dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.58-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.58-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b8f3b81466016be1c765902cde95ac4e5fcecd44ed064082a117f4bf6778cf22
MD5 ed305d3936a77e84b17fa68bc266f25d
BLAKE2b-256 8524e174d34a8adbfaa79ca82954a871b59ad94232c4259a8925a901ecc5a71a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.58-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.58-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9ee8dca754dd8c982b278d8998d5593681ab2216d826e7423e2f61f1c1c4030f
MD5 de656adfdd3848fc9ffb81887d329500
BLAKE2b-256 1cf35fc61f0ec224f874b88815da38a57966c446586e9d9a1be177ed920b6920

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.58-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.58-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9fff2b02dc4be446aa7fc7231bab53241cc78a1bd5f75915122525e17000a670
MD5 87bb900add71cac42e67839d947d1e8c
BLAKE2b-256 39ed152240d57ca7006fafe37a5b073f4003e817b52d659d54d5268095ea2081

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.58-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c307c947f3ff4bf61cb31a29d5bad222a9e5a90e4a1a527205d74f9c72d66181
MD5 88bfbacbd0ad6b58b398abb12ad5d6fc
BLAKE2b-256 4e035d4528b84fdf380a3737fffb51f7ce9d0afc253422abb0a132234827ed8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.58-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.58-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 36a240ac90f7dbc929d01c63136e1d7dc4d5022da19906b27b9b4c87c1b7ebf0
MD5 48105477c1803ab2f5081b16b93fdc93
BLAKE2b-256 0a87e9cd43a56156347c1c24b58480e2e21e38eacc6cb3c3df687695541017c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.58-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.58-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c14a954772c43cd97067363d007e726fa0aeb2d70ebd45ffe70673d1ea35d162
MD5 6e13a292809afe474b37df52212f1bcd
BLAKE2b-256 7a3a3feeb715519bfbb507d0c6fc3ee54120f9ec43a663ba27593495a3d3fc62

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.58-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.58-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 227b1bbf0cabe900e70c4fd3b11d1e087989d9f67f7c2e44d2d5bd58a1c5e05a
MD5 58fae3c937c0e0578a4f0eca7b1345ee
BLAKE2b-256 1ae1c14d8dce2573260841641b2a494b0b904949c283467445a873719899aee4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.58-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d1f51f9cee472de43b44e95cedd202fc921544c41162e72f07d7ccad2856da4a
MD5 850169dea8bf3f2ac6ae46b1eedcb2bb
BLAKE2b-256 4b7ca415e7f8d6ebe95fe579552424648a6380bfac9829d02da1c89ee823811f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.58-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.58-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f7144abbd35e17efe58361d956024b3f31e664219dbd7e19cc63f5abdcf4f520
MD5 ca18932163b0fada3a72378876e026b3
BLAKE2b-256 a6ef2af360940602bb90344ec2bbe3236827bbe92fd4eb3326176070a31f4f38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.58-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.58-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a0e0e09131b239ab5840c61413c4ec8993603e8814d07138b3a38223fc534b63
MD5 b1ec3be440a81566ecf14f53e4e1e5cb
BLAKE2b-256 e424de28125a4aedb97b331c95f6df6a55c80c2cd956f72fca45c8fe29be60e2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.58-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.58-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4d7c492fd0df4e4c1db5e24f2d1077066803eb6a2a91b0de5c44415b1e099031
MD5 3987fcfbedf11a532f7afbe9199a3857
BLAKE2b-256 4d81a8571863c6880b6a7f0947075e773b9cf36dd755f0a1b1af214a3f0ce8ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.58-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4f7ea3a7a1be1e2adfcc12caea99923d11463a17bacb347e8cfdcd6430885af4
MD5 6fc4007b9d7bf3b181a051701fa7b9d5
BLAKE2b-256 3319794aa038ca1212646e0e77004221bf6f1d62945bd517e70ea4055213f36d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.58-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.58-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c76efa570c01dbaab426f2b5cf75e07404f58dc804711f9098fafffd169b114a
MD5 aed90ff973806d8426585d3bfc2b0e0e
BLAKE2b-256 89e189dbc8b2272bace8beb16703e1f037ac3f150b820f28631c70c02e0dfd8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.58-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.58-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 57e035e73793a4bec965705ceb26a3d17097cf7fea0b8cf3b701517814cd1314
MD5 bf7d8f2e08fd0a80ee8e8162f11d4858
BLAKE2b-256 b6b8469f42210faf86dea359f6026612d5adb54b14f88b988ebe5534ae5f8287

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.58-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.58-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9abb595b5a138afab913ae1ae34242bbf72db2dcc2aef91f395cfb24da0aee7f
MD5 92c6b144eecbca23b4c9f56e518fc071
BLAKE2b-256 efb9436919a3ecc102b58de4e9a602bb136ffdb78217d3391ccd7b1a76572259

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.58-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b36374826d576489cbdffcba4326f82a7393afe6e78a3971758d1a7ef98d7138
MD5 5fd881470c4e1b416a0ce1ecbd042473
BLAKE2b-256 b44ec8cbf4547564f5dfcb8a8a5fdcecb9a54d70be724135acaad108d2d594f2

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