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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.929-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.929-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.929-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.929-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f41b295a838a8ea6cb8f6fdc8aa61abf573bbb4b7ecd95462491dbd4c95b4b50
MD5 7a3cfccf73d3ea30477fa1c7c49fde01
BLAKE2b-256 a820d96a8af080a520efdf41c8323bf8e97994059968e84663e40c92f4933308

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.929-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.929-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4d7223423901ceaff2f554efa346e69cce3aa85d832cea63d9f206b6d482a99f
MD5 785e5f85fc0efa6600750f82b7b23248
BLAKE2b-256 ab7e23a102fc9097568bd00e49efda088d5cfce63cb39e681de88bf2330c3594

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.929-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.929-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a59a600a96cb8d82978fa6168d55c96a68a4cc8c28bda757809350242d322bc2
MD5 59f4bf949087ef59d536b4c94fced404
BLAKE2b-256 9ed3067e28949f024bac1139135d7d75d1a874ea4fb1e7e15dd63aa4e8d8bae8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.929-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 49731b3bab818ab260a8b2d36d73000b3bd0d8d6394b2585f46e2ddb687b7ff1
MD5 4eb8b26762abc80d303654fa224bd976
BLAKE2b-256 4d8b2b72d6c6423e80d8ab0d17a20a212d1bc58bc181e9f2dbf907cfc20c5395

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.929-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 57cf5ebe49d3f42446651e0eb5dfb99b7285d7f1e6bc69d5d60c1d1a59c34534
MD5 156f6694ab2723c3f930e9fc63064774
BLAKE2b-256 d3736c35ee2c3b2c8bbcf7e7850ff9e7529f13069fa8b36e8fec5bf5e7063081

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.929-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.929-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 198af00aeb065cc7fe20e69b53b4ead44f869261580f28b1dbf818e4ca901923
MD5 b9f3f4fb06f2bf47027b5a31f8691844
BLAKE2b-256 660c168d085c43085b3fd9869ccfa65f873e25bdb6f3b83d78c0a96911892cc9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.929-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.929-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c131d4bf7db068caf839167b6979e6df7b907b10dfc171b181a304fd580799e3
MD5 66e264c4657ad27d3e68871f19d0ae6a
BLAKE2b-256 8ed5a9c27abdca8e83ecaaa54b77393171040f77be0e1536d72dc55c73f4b929

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.929-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0807ce0ef08e45b3caccae765aeb220ae6ceae4c814232b99ab9b1a0c604edf6
MD5 50484c373ebf6342434faa0534982471
BLAKE2b-256 a1774e8810e413fcdefb029f952807fe343cdfb2ba40920820f6a918b7a1ab01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.929-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ab94816dc30e1fc0356177b0d867b553912292d5c4563ed912a0843201de5185
MD5 f496362d0884e830dea5428e6d84e7f1
BLAKE2b-256 4f3fee2f828c598acdfeb60bb497e51b73a57cb6336ba28b9658b7953f5cb52c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.929-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.929-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 bd2f29842596ce5f6134747891fee5d88a76aa21af41ca95848880b566366a42
MD5 b4ffd0609d6ca2d8684f5d2f6a0277f3
BLAKE2b-256 b753f8f254dec202d552b13a9523cdcf2b3a7f1134a5b6e4197c4b2fdccd3d1c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.929-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.929-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bfa5df9458223c470839fc298547dac97dcb0fffbaeeb510538d6d482ba59fb5
MD5 2f160a94e5ae9e334ddd87a2804912b3
BLAKE2b-256 488ff75265da28c53ff63f17221174b3c5de29db20c3d56bf98033f40bd4956f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.929-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 755516c091e3a333ad5cc0674bc5cf86ce0e84767c0083847f55913c0d2fec6f
MD5 cc8782fb24f5b28d3399469216c8e21d
BLAKE2b-256 df11b0c90c098299ad92f3fc7444316a86535d1d18585e994db1abffe6713fb0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.929-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.929-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2d3cf64b062dd7857d89841615d55972bcb6c7352b39e1d8b83844db837bf5d3
MD5 fdf766ac74521a092430497087d55eaf
BLAKE2b-256 445e18968303ecc53a48657834d31d28d849ffc3395ef051f18b188134c887c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.929-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.929-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0a525b921c62c4ca7b498c83549de2e2b784f48786f18b78fea556a70932ae2e
MD5 6e37badf54e71030041393aa42389695
BLAKE2b-256 d0809ea0247435311180a15ecb1e5461a59263cfed0f1ca60e7bf99e59919687

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.929-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.929-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1a952e7b3bb133505554ac19a7e82d5fc8768e308a3e0c29bace2eeaebbabc30
MD5 4102b35391b6c1770bcaae03087360cd
BLAKE2b-256 4b7fc870c1ca101c06bc022dfa66bd1fd4e89f59e9f0caacfc3a4c9ee21d97b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.929-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84ec05f174d40d6f371446fb1d13f0d88647473a437fa8e74fb18b66739a24d9
MD5 adcf9ba5087193081981f5aa873acab6
BLAKE2b-256 27c5b0f8a563f4e0df84467d32e62d2c05c621e38b897dab9aa2ff3b85ba4856

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.929-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.929-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6f3404a5986c1b140e6b39e315cd7287d99f285b00aedd507062a1d997bfeee9
MD5 4ea995aa17eb0d751eccad7a9f1e4557
BLAKE2b-256 98018a76b59e60ccb8a6ede62444ebff2066f955b3b60eaf0986bf531c420c5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.929-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.929-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fe92922a82b7cbca79a874ed0cb67b343259e21b1f4041c44fca63ca4bb4a96d
MD5 2c34be812b8b4f0ea366c2b26ed47752
BLAKE2b-256 90ffa12f7c0b657473eb47cc60f35cb8727725751b2515fd5bbeea25bd44c66b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.929-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.929-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 438a40c9866825b0c079ffe21ca357013eac28a9b5eb19614d28720ee8afddd7
MD5 10e95a7cb5f1947929e0ba5f1f43e0bf
BLAKE2b-256 b73eccfdd00a1bda2bfb5c627302724a177e1d9b6567f752db6428114cb2a377

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.929-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3da505018ed1500432b733f066c7c74122d69d8cb9e140a7aac7b0e65247d043
MD5 320a0a373a16f6c72ebcddcc350c90b5
BLAKE2b-256 1cd66057c119a3eaeb0d0b190299361b707407cd1879850ee343ee147334c916

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