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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.327-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.327-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.327-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.327-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 51636b93c5043a6113464590a4d23f194ab4ece3cfdba4351c944f4050965e15
MD5 8b8eff95da2a29063aee93b762fb8e08
BLAKE2b-256 8de49fb3cc1fcd264d732a77c7dafde909109490795ef2aff3d63a6f33649ea8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.327-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.327-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3287eba158c8ad97c7f125a29766fa07a38b697515c366bf38c595bb35367e63
MD5 7c09e363b16c642d4aedf324304cb531
BLAKE2b-256 5fc6f5e02a7112b3ca2cb361ce2b11be75c379451de0e16e157f0864c3c5cac1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.327-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.327-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 640e8a042de44626dd58443ff2ba4d6e90e1f1c9f8640cc6f76a5ffe9c1d7bcc
MD5 d786b4ede6d4e0b39509931960dce1f4
BLAKE2b-256 3ec664238617ccb789162878f79340c32004313438b5b67c24c7479267cff81e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.327-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e3b88f716e04d677a2ae944aa1f766aae15bb98ecf95230467e90cefc7e1649
MD5 e6631ba5fef8fded90514d9f536a4ac5
BLAKE2b-256 b800f4f1eb5cb36a083074fca91ad4d26c0c5741ea8cb736a58b7fc07bcd9d66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.327-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0dac9a5b9f7f29feb6833d9e4207589485c87d421c26f5d86b066e68d1ac666b
MD5 758d395cc7705d5babd2bc8ef1c99c2a
BLAKE2b-256 50f208fc3806e9cf4315b7cca12181f6d38bf63a821f78fdc1022044a53c0778

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.327-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.327-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 60a4dac06e7116833fde2e9f58417a9d8411a5d28679c5905fb7537800679732
MD5 b734ac04fa0ffdf60f4bf01e17bbaf6a
BLAKE2b-256 c10dbb7227c6f9efcdc93874b6d2c32d7a2e05517fc6a6b2ebfad13c5b46ae5e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.327-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.327-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 59c7a4c87c32a88fbeae5386cf246d2add82cb6fbaf130d6c8a57c0cf1214d32
MD5 4289aab0e4923ce4d1bb87db6ebe7b57
BLAKE2b-256 1c2cffa012b01ce8a04703f95e957820dbbbf0a5f6b9897c47cd5deb0b02e409

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.327-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d38404c022175c1e6dbbfede14f731420df60752b151432effb820421ef4688d
MD5 f3292ec7a7dd64e06233657ecb615135
BLAKE2b-256 63aed823fd7028c2388076e0bf6e8a287261bf98f77cbad817c01df5958f96fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.327-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d32993594068f8c9919d0ae93ca2074e52eeda265a292f8093cc989ee0c70dcd
MD5 ae403494816b778f03014289c42d534d
BLAKE2b-256 daa7bc686d83febce1ebc214791d8347c5ec1f38a292fe76b959596817293749

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.327-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.327-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a927faded9dd00dabe5ede4d0e35295c1a1fa8095db91d84daa28253abed922f
MD5 d6e03002d3be0e595b7982cc9bde7b01
BLAKE2b-256 bc37dd8e008612e74d9ce56c48746a993d40384e0c986a7a15f3f68ef2496886

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.327-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.327-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e9081c6065d31cf193558ac0417e50a1683cd74c75b5090db1497434a3fcb1dc
MD5 5ec1576cdd33b3136a3d35e410c6707c
BLAKE2b-256 aaace6fed85c43806fdb08105a6ae1f53b3ff96cd4d0d39eec04971a879a3473

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.327-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4a439b763b191053edef3081659b2654b37020ca2ef988d9d74494857caf8b26
MD5 05076084961749ad13063a8f20f49052
BLAKE2b-256 04a401207ae0b3e1a9fe2386549fd7d72edcc5f4e7607bfa4fbe73e79ce399e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.327-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.327-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cbb9b1174dbbb42009d4038ce132f1923b06e4de277d0a1afde59ff461e5abf6
MD5 f957ae6de42e1a5675207b01cda62871
BLAKE2b-256 2a8ff7f48fedf7c8fce7342dec0de9679e7fc12e113e195965fabbc35602fb49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.327-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.327-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0d17460af668f3dab10dfcc4a403f2322bec7847b550f2aa85c70c682b25863d
MD5 ddd9081d017a245372ecccf89ce96fe7
BLAKE2b-256 7a1dfcec5e07b09b46eac83d1a0218e2269c50bf89d44b075612cff9bccbfffc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.327-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.327-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0e2d9de3ea1d6df916b3ba4b9679d7e86d61db7e5ea1bb33b35af18c4a345241
MD5 e24d7c375c7c49a40d7b3fcedd968aa7
BLAKE2b-256 bc73b91ed9669093dc40b12930b4409a45c56f0906565d632f5af7ae083d3482

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.327-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8605f8c11ef80136c42d23ab554689cdbe0649502f78c5cb101ffea0f60769a2
MD5 4706b61bfdac8a51374e53a998d04d21
BLAKE2b-256 a9df28d06bc1242589e6a6f348eb6872cf70ecc28d092d8f7a31ca4b3c2697b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.327-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.327-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 356d9b771b5708a5629eb9e00b42a28788850f97df07bc35df6c5197691656b6
MD5 fc46483013475848cb5895b65eca4520
BLAKE2b-256 93777ffd31e25cbce2fb515536278339e195ab323098f31f78805eedf7c8216a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.327-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.327-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4810b8bce0c1eee2c3db7c3332c322cec3d419cf5199e1a4facba0eb31ea3533
MD5 501daabdf777108b235e724c7431493b
BLAKE2b-256 acc7a2b7326fefd8eb040df17ea45afd910e72399967f3f227f114078db38479

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.327-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.327-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a8ac0c3d4d189b292c4688a0fe040f9ffae48dba6dec1cafc7629f143a6ed9cb
MD5 9b6bd4f922ae06599ab0e8c0afeb058d
BLAKE2b-256 a374402ca4bc6ca0b360e8df3c7a5d9b5ce59bf031cf4526676f7e2812f41ea6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.327-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5b555112519981aaa6e705cd3ed787675fa7a19471d43bef216c9b6ae77de0ed
MD5 e2f0cae5bdaddf25814e406d5f968f8c
BLAKE2b-256 a43a861b164925f4b899b75554a677159af14fc093c1ae0e7f0c0c22e3913c10

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