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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.739-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.739-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.739-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.739-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 38fa83013fe75e24779c48e6a2839cc8fbb4adc589998ebf066fc939798acb1a
MD5 699b84408cf610f48069b5c1c63209e8
BLAKE2b-256 99820235518c03d9259e0ed9f39bcd3607deb31ae72d04b462b663b5e14e99f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.739-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.739-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 96867c24ec27cb791cab514c04fad7a4b9a3640721801b3cb88100f7b4088d33
MD5 af1bc6c436a0c4b208cb3c9b4087d27c
BLAKE2b-256 d65291b40c526109f822a7d19c723385df8fa549ea4ead46ed704decd13a4c4b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.739-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.739-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d93a8ae1c4c26a2837254b4c629bd759b9203b1c7a35917f068b0ce72f1f86ac
MD5 fc1b5ef49c1c638686f3c5b9725aa1a0
BLAKE2b-256 67f1fa94dc49f43a5090818b4e3d62bf75651e6683106e38009badeef4230d3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.739-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7925a15ee8edd55fdaa25b1ae6a81a509559320b97e2edc19bdde3c33bb7f8ae
MD5 eb4621e1db1e00072060ae754501c41a
BLAKE2b-256 bd43fd5f5d4aea139c6662933f76254f85819f32f7bd46a11694161b4881f101

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.739-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d37735eedde4ae94ef4b673d6b3ab7a7febff6561fa10ffe5b04cb341bb01cea
MD5 6e7a2689bf462a70d8fe7c8155d6e166
BLAKE2b-256 c1dcf298a13950fb4a89d2608723fbcd03f8e5f971f902308106f94f69894907

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.739-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.739-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8545a4dc6157d8d67d344830824b720bdff36c010f083beeb3362ac10e3901ce
MD5 005831896bdb69016501ca424bc9e130
BLAKE2b-256 3c3909b4f1fa0b733e8db317e2b2165d2c30e1248e3e28e3587f11a92b9033f0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.739-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.739-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 102fb342b4cb085a29c72410ce92a9f2597dff24367587a46efdb58b494ae6de
MD5 d46ca76018a915886eade917ce4ae2d6
BLAKE2b-256 c4eee86cae1e20f4f7c449101a86dd798fe4fa411413855dbada0d38e8ebfd11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.739-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a99a27e0e784c2abe036ba6b3b40e3b45f23096fdc56b8b546b2ae5f31460a0
MD5 d956f16a7ed7a0a367301f7fced7ba3f
BLAKE2b-256 96ee1042ecf5f4e5d3cc9c48d7a8d3481fd1ed78af6d0ffb1cc5c7446af72551

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.739-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b0b2949b1b576bf9addf2810cf5747603abfb54fe0832fcfbb86a128cff1c3fa
MD5 516aa7431d195b29b3bbf38b5e353662
BLAKE2b-256 0e12eef643ad359da4bbf41c11e2e9c9ed8acdfb03cc9bc5cbb96514726701db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.739-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.739-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2e56c0836bae99508e2c2599c238076462a6cc5c7f377ecc04d12b048477d456
MD5 a71e2f889224ea49ef14616bf45a5bb7
BLAKE2b-256 21841a8cf4c1f9699986f1b180ef1705107092e06523b2ab8faf97293c576f0c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.739-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.739-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0abb96b1d22e5b7928a4f15f35216b8e24506288f8711945a6c7fce2bc69481d
MD5 1c03d6def41cd1906b62d4c5ed2b4621
BLAKE2b-256 0c59967622f28c421b9130113574829e9a55bc945d59798e9b6b6f0ed7b397c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.739-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c575b45a7392a944235fef21eacb1af9dc80aad58dd8498222ff9c16d8d69eb5
MD5 7b90168f81edce0db6d93a316c582735
BLAKE2b-256 9ab93c658a35a937b23a096422f66753ee2d8b7b7e100f4ce57fccc9e0deae47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.739-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.739-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 55d0a1574cb879ad59be72a762d3b0a008f349f1ffc75bac1e725e572d1e2eaf
MD5 fbeca20e0f1d156b0ba64134db5c6559
BLAKE2b-256 0a66275b5dd470dc486ac44afa77f014917e012de1944949e748dbac992f6918

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.739-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.739-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 32898f9bd5f7037b26fbfa1ab4ad4b33fd8ef641f76a660b925403141ca9ec28
MD5 43a48e1334edf5bc02f86219febd6963
BLAKE2b-256 2144bc7d59bb4c4cb247e4c326f63eb84d5f7bc2cba4fdb45bae5b2f5c539d9d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.739-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.739-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 55d86ee922a049f93ad124ebb00f16c4a8ecb9d6f6ad01125e442ff309261a32
MD5 1c247d1fad13cdb7cde60a5814d0d63d
BLAKE2b-256 08bc46b1cec2fe00caec383a4bc289fe1e7201c323ad1047b30177bdd055b7cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.739-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b62402a987e0278a0d0d810dbdb84685956f5228717b53b89b24f4fdaa21ae3c
MD5 55ae2dbb9bc1279dc04a8138aedb04fe
BLAKE2b-256 aa5ea5db54f33bbe6a95402d1d8814317c67c1bcdd383b013a22a1a1d49b5423

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.739-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.739-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c013ff3cdc54dd2f8726db70280faea29006e7132141a5ea8e76a30f4e184189
MD5 5f6dfc4278a794a31230ea2d0af27bef
BLAKE2b-256 36ab5fef6b85d01f1e71137574aa1c51b9edb36364fd4c92976bc2d457e5afc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.739-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.739-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6fbefb2632d0543bb70907a8495ae53f1a4186dd00f0b4e5df0072f95167edce
MD5 b5f6f7e61543c4896d652c22b6dec88b
BLAKE2b-256 ce25d0601a8708ed1f0ca2807630c26a63a7052f6dc84fd7bd30aab18e48a6d1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.739-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.739-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2de661732f5a01fe1d77dba96052b5059589a09cd99f3ba239a3c9b9a7996b84
MD5 e410294bec617eb4a4ba67d1ada350f3
BLAKE2b-256 ac08f424d307c96c107427170cb742813a3754fa3c352cb932d898eb3c671fdb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.739-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d4c466aa59d075dec84af1d19f593e58cf059d5dd080884e59955ef17321ab1
MD5 1f65721f993d76ba198e1723f9dd04ae
BLAKE2b-256 9b8da48df84a07f3db3b2419467679107a1969f1d070883aff9a88dde3d474ff

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