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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.710-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.710-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.710-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.710-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bfa88bc0a497630e75e04488dba390298dc26d62935cf4ec276f658c6f43d8ca
MD5 438b6735cecdbdf67cbd295786cafdfd
BLAKE2b-256 1086e992904d8676a0cca75396646882768ed5a59f7ffc7372e1b572005c9c6d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.710-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.710-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b84ead42db932602afe94f01e279539bb115f4e6175534a7b2f6bb7ce1a55631
MD5 e37d2b0d0af6b8d6308486ad88b190de
BLAKE2b-256 9596257f83225f3ed72a75d984a85030ce4892425d5bc81c99553d52898947c3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.710-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.710-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 793c2b9f685912024d93e420ea51101b34d4ffbf22cba6270df7ae3d01c4bd53
MD5 87ddfb33edcfbbce77ed02731ee5170e
BLAKE2b-256 09f463be505bf3ae733246afb4bec3e9217e0c2ebc6a7d21998f6af2026d27dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.710-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32e1d82495504226ad846cf2bf83c3915699f75de7d3a46d8cbedb07553bf002
MD5 2388ff61f5b5b817db9c00b79d27c0c9
BLAKE2b-256 e001a847ddf913795370ae08945e10a9fd8f56a6daffd7df12e108295ff3f5ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.710-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 59f50f78cdeecc049bc08e669285e5a0512431b5bb1d15f1993d0fb571bcd968
MD5 daae2e6388e2eacf657f905c394e3c45
BLAKE2b-256 64b6e0c42c7af661df126a039b242e20f5c21aa3434e6653f086e5f2937e5999

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.710-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.710-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8b3c0aab771a3f385fa82a3da8874120df51988000b72b719ff94262e0986917
MD5 815875541d8d8b848dbb0d91523aaa17
BLAKE2b-256 819a1c2216cff0aafc773d3e67dfe7338379ea1b77fc0bc9f794b86ce15a2b58

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.710-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.710-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e7361b3743ea8e1363a205c22de60a1c56947737376b54972388335663099421
MD5 7ebdde425ce6833e5bfd8e536a0bcb04
BLAKE2b-256 b05133024ee2c4c30f80b9d7a7d374206d379a20618806c8e0dfceef1dc6aa7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.710-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f89bbbd570eb1decd21deea6e6e7b12d82a27669232dd583db9ad53178af6f1e
MD5 79e426a7b7ca70bfd78a443a2450ab05
BLAKE2b-256 04f2191596c08934f83dafd90db434644946579f11b6226674acf8e3c32cb6e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.710-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b23e2d36e59366fa111479accd36c64272ed505114e80dea2b6c9d71d507a20b
MD5 363a58b5f7b422a6175229fe91788b49
BLAKE2b-256 2eb5268accced717c928092fa03baa73a60f3705f4dedb4387f241dbb3f08e7e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.710-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.710-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2b742aad9449e861233b5b7f8b2d2b661915ba71225d452dec44713742d905b9
MD5 20514cad53d20d510a8cc0896ab13e8a
BLAKE2b-256 94710896ee5607d935643685b3410dac249902198485f39d71d7e5e0b4428d92

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.710-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.710-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c82348a71c50a1ecd12ffe6c1243e5c1dce9705ec2fe4e4efb2db9079b63e44a
MD5 b627c1693c65db92f3735b76cce605ca
BLAKE2b-256 789fdc9a08d2b325f882749ba17ff40d476dba24f6bda3ac7e915ed6e7c55d4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.710-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 be7c2ca6e77c088fbf0c4ae8a8a5f31d253481be2e8332dd305bd87e11ad6505
MD5 ccc691977e8a22026ec23507731ffd49
BLAKE2b-256 d27e730fbeacdf8d67819af038ff4f469e520ebd809a4bc470e413a7207cb4a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.710-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.710-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 30d7c8d93bc2f684446a760cd4323c8f81407379a6bb6c5973be6bbf956a242b
MD5 eb2cc0c768d7d4d0b449f7199f044be6
BLAKE2b-256 c554b879fdc195e88e03a9ff185a1e29dad74166754d301151e0470e581182e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.710-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.710-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 62226ba18c41abff9d0e506331ebd3d5f550e70504cfb477eb1dfef27d758c6c
MD5 08ef077b5ff98da7b6c26f1b8a46d65d
BLAKE2b-256 32b43e7600a5d1396cd5e1e77738e046be7bb8378636beae338f6c8bb52fef8a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.710-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.710-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5a747231ac800526b3c128cacc1e655fafdb3546cf74999068d438f52e9adc5e
MD5 84c496098cf965af256ba63bd9c4f78e
BLAKE2b-256 26c55928f6f9c1d24e43cbdca57c7e2eca2b7fe0ab833248e3a6ac725bcba43d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.710-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd62074b83c3516de71d88e3c5922f4432b19314f76444ec7280d806e9cc9be5
MD5 0b2c2d191642739ddf7f2f0b1d230fe5
BLAKE2b-256 afa44e5458323b8fbba2d90e366ccddde1986bce3ec861739b7b826a161ea809

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.710-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.710-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2dfc82f8ba34fcd99c3e04b1bcd0e08f7ee0a5ec8ad019eae56156d3ea950f11
MD5 be7cd0675828124694ee8129aedbb8f9
BLAKE2b-256 0cefd53a20afef5b6dbc1809ee350bf6951465e081e92b3e37e048e01c5f7889

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.710-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.710-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b78372f66a1596b974c1888496d16d6cd22f6c5cc93ffd67c954fa0760c724fb
MD5 593e1dd4c96f464ce9956b985d1638f1
BLAKE2b-256 05f51d1f9c66a7c80326c2a45ba53929ad727d172969fa6cbc4b5367bc1f4f8c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.710-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.710-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1e7f58eeaf6b6ffe165150edf96016dc8e43b6c57c9dd4090c84ef26fe14b68b
MD5 2e585f6d6ecb77ad46b18f32216e01aa
BLAKE2b-256 408549569593b397031393175224c178b75c6ba42b992463731610dadc3a136d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.710-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e4291b74e92cf3938d0b23d4fd158adf8f9230b6a9cdc6eff6c99c23cad276f
MD5 d83e4c71243c61ed939ef894c277c309
BLAKE2b-256 b4be3ca858b6977edbc12c2d43f28aa8442cce671980aad5457576f09adec87b

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