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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.312-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.312-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.312-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.312-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 efb27d3593658ec00a52883cc093cc410954a43ec5518977cd6e4319ee98676c
MD5 714f5b326441c5a23e03bed2dae524e7
BLAKE2b-256 046c8bcd304e4c2cd6708669eaaa4555839d13eeebce7c2154b1bef80bf6a3b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.312-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.312-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 add66314662b87d01fdfb956286dfe58cb3c2063280187a5825e25b2cd713963
MD5 68f0b2be31ce5f8b55c9c20e45aaf4b5
BLAKE2b-256 545f18518e48745494886317ffd20001c811e7aba89e0d40f7b4dfef1975194d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.312-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.312-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d91c3f33e85ff02a91f9625d92d1d8e14e1e82f3c06f4dd8c215c46c53f1df69
MD5 a5dd40e88f3e0b4e8b1250dbb5ba9b0b
BLAKE2b-256 eaeac0c8cb312b79f560f24af8afbd04eef279706fbe79bcbba7d5cd631fd52d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.312-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65ef64625544910ab57307a2dacd4b23ec33f23ccd643bf01c7e1e28af6334d5
MD5 26e68e143675c88e5e95c02fff4fcfee
BLAKE2b-256 c847c06d65ef8d0d2cf91f94e5fb0ef86f0d04ef647bd968b923e54b77e4543f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.312-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 41db6114993bc1893abff80d0742ca0f0c9069c294b9aa7742de36455e3abb96
MD5 42c56dd39dd54aa66ea319f1f376dc8c
BLAKE2b-256 456bd37bc70cf55f35067afdef511f171a58b2cbe42e095a64bc8a9158a05d4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.312-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.312-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 eae7228d894dd96cbc55cbad36313465590298d3d338ad54b0aa2dda37a00e2c
MD5 89a4272654a2c9a9de30a16089a81c3e
BLAKE2b-256 4a1b7d540172fa295442552b8eb9e189aa9da2faa550d7dce7e2d8c2ffe9c902

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.312-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.312-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1b4c815cf0bfbfb00b9d944ed3bcc2761425d5485faddcaa182fcfe1a713f52c
MD5 0bc7b60d296188396e14fe9cfa7a4920
BLAKE2b-256 459c0a61361c373eee9395679578bc6a32b59694cef4b9912c5319b94071fd29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.312-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2cd74b4f66365fd39e67d3d7aa12f40e266e15f94afd5333e654279f08b2510f
MD5 eb089e577c98465a0070d151b38421d3
BLAKE2b-256 c403b328c3b0b167b4900b27882286a6e188aabb9585234a16078b2c06fff8a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.312-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 674bc3ab98e02ec928b77bdea0565b89dc80da4673559b2e846bef0e51c48b5e
MD5 95eb076136e1cf4a2000952143f9bf94
BLAKE2b-256 731e923b76703360f30d34b85bdf57d2886da038e867b01493100ca8fb1bf787

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.312-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.312-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a2ac393100ed2f8e97ce90669f93e893baa6425f78528426a583b96e54a2207a
MD5 6bae720222ce60aa79f724e291440532
BLAKE2b-256 d33cdaef968b08a904e9d3de94e9b264fcfffa7093d7871dec64222991d57831

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.312-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.312-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e45f7f17bb2aded26b5f14b3051caf72ec1a1c831e6208f3653d05a3a5145734
MD5 199115249376f90ebfccc98f693a3640
BLAKE2b-256 531b469db9d5023c8ab3d992689f59f7b9f06a6ff13ca57b372415b5b5aa8d56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.312-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c46c20cf843095cc27c42542c86c198a387c69775f89f81d76380adbf591886e
MD5 cfc4312f15edbf36db7ce2bc87be156f
BLAKE2b-256 0812af18c218a8900296ae65594891677a07127ecd09fb84797c17412352d7b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.312-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.312-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a10e61be97d50963cd8de29108f5d8f220167202b01cf17e2a771a756e8a38da
MD5 2e0a22a2b45788706d21459206e1613c
BLAKE2b-256 f807eb043ddca7b604c0a439a9a2916a15281830a2ca04681e62dbd1e20d3ad8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.312-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.312-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f32f446967686173f3ca7bd5a78876bd6ee8fd9063d5817f5fb97c13b098cba3
MD5 75ba9bdd066511fb20b6acb8dc859f94
BLAKE2b-256 af3765a7a2f0486ed80c340cc69e1e955604fcf62c5ab01ca5e6922094d18aa8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.312-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.312-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e1175c57d7365233fd0e8c54f5568b8410cc4df7deb9b55bd09529ad9c37f262
MD5 6d4fe35076b721824da0142b62d0085e
BLAKE2b-256 d309503b666d1fcc2aff8cef5a75808e4fc1e8552a16c380f6c97418db427406

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.312-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5513847c9a20dd9fa8037d34c5b536c0a8ba9276d57f2568f9299c3f3ad3da8a
MD5 602c4a3f731cbfee85da69724f7479b6
BLAKE2b-256 bc19e3b9199ea30e7821c4096710659450329d9140141957e22dcc30fb5d611b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.312-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.312-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8fd51d38735ef58de2b0175ccf8c133c7526300195b2c018ae8c5cc6050b5846
MD5 eae647e6257e7be7273c1e8ed586e533
BLAKE2b-256 97d1bb4f3c2a2a28e07bbd622a6692ee5cfa007d3b444efeb9b371bf38a17c0d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.312-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.312-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7c63f6d1d1a4a85e20b43f4c473f37d869f833a7d6d220da23b4becc061ce207
MD5 1153c14a24e281fdb539acd3151941b4
BLAKE2b-256 60c14ffa1e9854bfcf853113d4a67974b8ece4eb91421bfdc6ef0e6ad2967bb9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.312-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.312-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6d967d366ab86b69e196394667b7c10ea4a18db4a01492baf5234854e7ea2846
MD5 f35739fae70d8b029247ab2d80364682
BLAKE2b-256 7504704d78996455facf9948288eb056f3be8112bb5360f336e0919d8c092895

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.312-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c81fb83fc0a811a2a517111b4b747b23076e74378987e71d43e203cc6a27605
MD5 17377648e3bf9719bf78caf783e84138
BLAKE2b-256 6da43bb2c980ba0f6112859d1d2c05fe76e50295b2ec04401e3d159edaa61713

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