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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.851-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.851-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.851-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.851-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 583825e2f506e1abbe9fdfe7e6b563821f157de4524e11b9d5f67135dddf5c06
MD5 1d2bd24e688e9aafaa4873be3a021eff
BLAKE2b-256 d5ad9fc12ab20f4b843b0869e5ccd1cea058132ccb5ad20e4ff93112087dae5e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.851-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.851-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 916b03491cde66d34028f956b38e3438983089ee272be492db684b62ca7b982b
MD5 8ccdafe62a3a0707dfdf457e8c36ce04
BLAKE2b-256 5d8072d3c7ea590dfd3515f88dd62e1bab3bb4f64df1e2524c69b52d5e92cd95

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.851-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.851-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c3d7db472df454d5cbb063e92ef0aba44aa457041056f38ccf83b8aa2288167c
MD5 3b5d6e0143d548657efb77bdc10eebd3
BLAKE2b-256 b3cb3b9c3b872683ee7858f46aba62383aab0dac6073b9618456262ff0fe5e32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.851-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc6f3aa1e7d821c3162a2c8e6c02bc0f0ff41ebe6527fe6f661f64f73dc23e5a
MD5 abb3553a5b5b2826049aa36ce945902c
BLAKE2b-256 1afb2d964dce33b60d39d9ecbe051fb330a1970a146e17e49b35d7335f646ad8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.851-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1ae48a7fdc2c15339d43078b873a49f6b48f5b3cffefe6ba9d7dc65cb8a2d28f
MD5 83d8173d80734a7a329cc645a63a6439
BLAKE2b-256 0f013982fe41e5a7b1b4a902bbf6c7e3914c613dfeb4c43f8027eab67d28cfba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.851-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.851-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9f9302f0c457d068507c80dd10b97a684a37f84c56af11df8406eef8103df5f9
MD5 77fe3b8be2ffdd511f6b8278c2a1f566
BLAKE2b-256 c4764fe93f61ef22eb44440b3ae514b0fd30c70ae4b5385f058a7b07a1d6265f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.851-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.851-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 baac699ca5ac7753d6ce734db928a5406d9a636e613526917947a3071088caee
MD5 d25e8ad6adce4a72438b9ae32b450e9d
BLAKE2b-256 47976a808d49f6de30ec031a751861ae5090d620d0e92d80733011d77c2bd6e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.851-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3fd07d4a5b82f81789464179ca0929181375224f07368f4f6cced6c8044b2f15
MD5 c5bcf4f886ccd34ba3c54c5fc2c73871
BLAKE2b-256 58011363e7317c16f24799d8dd192d944a79ae92323396073d7e908ed5b64eb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.851-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cdd365d63d0f7ebd3f1cc7b440836b058731e4512be89600e55e4f199567f6bb
MD5 fbdf274c0b9c8fe37b6b3b7ffbcd7d0b
BLAKE2b-256 22d60c8cdb4780e7e4e819a2bd540ee97f1563e51fc7db0e67f8663568ad898a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.851-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.851-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5ce26183b193e7f71636cd938b1b7497b445bd3b0340da4008fa18cb2cdd25a7
MD5 870de47557fc0fa8dc2a4acca1465da9
BLAKE2b-256 a72b75ebf70ea7c620a22a18350b8c5dec76ca6510c197de7f6d084be9000049

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.851-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.851-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 239d652fd25f440d693eef01fa0d00630f7cd58a0b823d341ce2732272e77fd5
MD5 b70e20505e8b012a019ecca1bd54219a
BLAKE2b-256 ccb5b11929d89874e2356bebe297efaafd2668b4af7351fc035c859a0462814a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.851-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1bab671a13bd8cf2f3a819a754b8149ae707e5211b4664fc5d4b4c4ddab2f527
MD5 d2e5097b0ccf1236a82ef072b9dd7df8
BLAKE2b-256 80654d494d60c4c9bb6e14a0fb5c2abb3c319eaad3de2b901f486939cd0a04c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.851-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.851-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7eefd99680c954429716ebddbf4d6732ae845cd70f32495e0c729e2cbd934248
MD5 c736004f6d41fd91ddffd07a4fa7e911
BLAKE2b-256 d207622c57c1cd4dcbd54d6d38b38256d30cead5ee56579010b8a6b2806cce40

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.851-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.851-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5ff0861ca07955263ce0a58ae2ac56cec44f8ebcf4ebfebff3c6d1c7f9bd041a
MD5 54148c92c6c48c48b4e9ee7af188541a
BLAKE2b-256 e5661de1d7fdead2b7ec73814da795d8b3589f9c8815225f367e7cf7077d0b48

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.851-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.851-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ee6bd255f08538fec549107ce3f22c6b63d3a9a657653d459157acca2d542f60
MD5 10ac50dfee9f3799cac5bc47389c348a
BLAKE2b-256 a86656171ecd8559bb29442e693ad391426fd3bcd90f5866a8037066f8f548ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.851-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bba85b8f615ba585bac786c0dbc7c81574ac7a17759ea787e208bd59ddc9e6f7
MD5 91ed59376e848910afa0b52e7d330483
BLAKE2b-256 311ae1897d816d8496c472d1a0dc07f692b50b3792266a152d61148a850d9251

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.851-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.851-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e57403b6aa1d2a36f5f8bfd4cb0049193a06861a6b15604307765f30e7f77987
MD5 9e48468bcac2cf3b6c6a2824d55503ef
BLAKE2b-256 77218ed531a2dfab01fb2d4712da5ff6a2050b76e235191b41a5f19aaf3d9e08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.851-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.851-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e406c6909af08128f51aaa30c3c2ab7191e7e0101590a3417c6fefba7695fc9b
MD5 f3b8b6bd90210825c30fd9866d7ca9bc
BLAKE2b-256 579d65865dac5e1dc7fd5cfefad80db660126bc43f76a2c1614525eccc1e4aad

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.851-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.851-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 35adffb288bedd45d7c6d862bb6c120bb19bce29790cf9a4f0f86de81eb186ea
MD5 c1b570e3af4c5818b6c9bbe0d990cd69
BLAKE2b-256 fe98ceb053520610b8812af797c885aeb887433d3e81d1ec712683a6977a1092

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.851-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 14737e74b4e3e49a41d31326c800cccf0873e3f115c34ca6d25d296c22fab5d7
MD5 9314adc290572a2668992712b112befb
BLAKE2b-256 b10bdcfd92e07c28862cc769eeca2f22ca1333a6bbe876390335d4bc877adac7

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