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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.653-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.653-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.653-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.653-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fb7c58138c2a49490cb96177cd60413770b43c07b58e7a03552293e172726595
MD5 d9e90c4d49d4a42fe25ab4c52f983c06
BLAKE2b-256 db1df32e2f14fe66fb01ef57f0a5e9b444e1fd1037a40d94a61c5ec5d74a0b2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.653-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.653-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d829d992cb2ec25a9108d8baff590215bfa16edeb13fe57c2974396a2cb75200
MD5 fd5f8ddae25690940182b188ad2bc8c0
BLAKE2b-256 e88ab699fd9f5f4fd205a6140dd8f31f7d6421fa565ef846a7a035b3eb1d0bff

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.653-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.653-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fbd6afa43d76796339aa3e196d80e185f706ab79f8af6c6b6028031f1cd32980
MD5 1ffeefbe28dea16a7e69a505ed85ba15
BLAKE2b-256 7051108369cfdd3d422285bdeba97b1d72b2807075a2a9190c2f83f7b5468af1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.653-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0836e826e85ed7a81019d8b2a8fcc4d3dc0b241e729f66940c450ea2c102c4e7
MD5 0e91b0dd47bf0219e1c2a4633d7be4a9
BLAKE2b-256 e718a604f6b16427cfd30707536614c0a9e25fa9cd6834cfcf2d0371128c66c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.653-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a642088ef0f66b2cb7d6efa3ee9fbe891a605722c6b0125e750cad2e9ada2b3d
MD5 56a02c74c1a908124d83026447d8af03
BLAKE2b-256 92b6385332440d553b5028a51d872b2ad70c50365f281868a9db49e2ec402bde

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.653-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.653-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6b1e779aabe7705247f065977871e340e164639d5363eab170ae9231497fa716
MD5 1841055912000fc2b06a6594898544c4
BLAKE2b-256 40d7b929830fc021c91fa9c0b916ed6057713a717c442b87e1e3d8f88c79a984

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.653-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.653-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f3ffbfc62b09a0f66eacb7890a8463fb6b767fa021800dfd72ab8aa03fa2f4df
MD5 5860ed7b1bb4c6a355ef657b153f1f65
BLAKE2b-256 c88f447c2cc4f1790a65e018ec4aadb4251e5c8dd8fcea332219c634428ae3ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.653-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a545db1931cfee8c8af9cc2a687a863ef626593f85aeab5ab7add387116670f0
MD5 1cb713c6840aef7091680b2e49f28fab
BLAKE2b-256 baac513e5274d704b555ab41de3efd48c423100fad6f27fc0b816df2dc3ab0c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.653-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1a79a67c33696091c454be1b0e768c5590835dc068946b3c9c6d65dde0d924b7
MD5 59662e1df3d0991bb2ed4b5eb6b3e38f
BLAKE2b-256 08ae630f03c00506a61a2da6e4c44bebc3f037c89375af90c59401f731bee68e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.653-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.653-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e49296149ec64e6bac3ea17eccab006047431f7a010b00f298cd934b03c041e6
MD5 391301be65289d2ff1b515c9e8b1b119
BLAKE2b-256 8c150794ddac58a0df41039f09fc03e42abcb4642bbf23fdfbfd77823057f9d1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.653-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.653-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a016330e0ea114dd1f3ff810d557568adb6f2118d6a0ebe5258a5b37984ef7af
MD5 cc72601115376fb171da61def6235ba4
BLAKE2b-256 3374e14892ff47e8b99d92e67785d533ff33a74e9d5f4b684e8e641c3f14d569

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.653-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1195909599d44cdd849bf946f3737a2de7a60d63a5fbe7811e8154c9e7a93ed7
MD5 dc5cb7b38fd72cc2966987b3edc569bf
BLAKE2b-256 140b236822c8c3923a9375de6deaaafa56cf555367c13c086d560eb3868781f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.653-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.653-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d266d24b27fc00df083ba4387c300877a3d6abb7cd63a2289cc0f02b400163d5
MD5 8c3aa6701f96935a67183f2fa30e0e67
BLAKE2b-256 a11f1353bb26766f82c7f1eb3af18b4b44acbf0c5bdf791e860cd04782d0e8ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.653-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.653-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a1973cb0eb57c2992e28f48896dfcf0a2fa91f5a65dc94e76cdae0851f5a53bd
MD5 96f64367e9cf0871c1f20a1e8974a1d5
BLAKE2b-256 16048c4511b82cab9d0cb130ef60b4b0e35be6549c5f42e4e66a24152d169559

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.653-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.653-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1a565fe47eba27ff81d8e33552bc95ad101427f1abea0712566081337b78fa82
MD5 3745fc41f49d603d9aaf24afdcf912a5
BLAKE2b-256 8102afb5039c0a95b0108f35abd66e0da849234a1179af690a9619e5423323b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.653-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 727b02eec552d04228f4c55de0e18700708ed132004637729d873b011d61ab12
MD5 3e66115a60860ef7a2c769b86c96665e
BLAKE2b-256 f91eac54aa7103cffe525be1de00d47683cedf5e70833734c966951fca0cd38b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.653-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.653-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 935ac8cdcc9a0ec871e56e70522832bd72765e224feccb2120d6b1ea93dbd6e5
MD5 6ca706d0aea12de93bc9a6e320c03e0c
BLAKE2b-256 5c31a7ffdeb34f016d49847cb929eaa06fbb2fc9038e7f06f08d66537b66e036

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.653-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.653-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7053f7addeb2b46bbe63c8fb5d49960f07bbc177a010342f67ac50af6f8b8a0c
MD5 bfaa38c9e130501b5cf7a669cffea851
BLAKE2b-256 6fa360727a4eeb54410eb98df35ebae39f4a839f21acd8f874b2ddd8954b9271

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.653-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.653-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4ec861b83981cb9d045c71f0115e5e662c60096189810dde990ab02ce10f2090
MD5 a3d9a5932ba3af84959fd4b39159365c
BLAKE2b-256 35d9c02ea46b3933dc044e5dfb9c9d9a06bd193c2546c529ae443db389596438

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.653-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e7a7c1437e478b31f529ecd11ec69119b71a7499a33de93bfa7da560361512e
MD5 f05e0d1c72685f8fd05d183833af3297
BLAKE2b-256 c52b13005027abbfef1dd6393e8972eacfe0b5a13b5ce057fdc53e52b4f55a10

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