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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.500-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.500-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.500-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.500-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 352615b28396c2a5e85379ff96d0384f1b308e4a6039c93a9db34a5d04901b82
MD5 f25538ab44d82ea092328c4a3a96d34a
BLAKE2b-256 1faf7eb7fe25e6feec4ee0a3981a5b7c300c0e23e875d30424c520acc649503a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.500-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.500-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f1548741985495676f3d915fd0a4cb10eade833393d7de0a9c334f593c9a8c40
MD5 594deb98fe9694f7092475aa31873c09
BLAKE2b-256 9b395b6040fc47c9687343bd4c3cca6ba5b428e19d212bb29eb3c466c3b81d95

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.500-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.500-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 836433d2bd98045e15ee6aa00f8bb17a760beab88b13f871f99b9aa02224206c
MD5 db44a1e9da636c458467b1574a4385f5
BLAKE2b-256 47f114d3eb8779c681ef8d88b31a716003cf3a891e1ed82419a7800215e5536e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.500-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 de1f6d1d4fefe1daf41f6888c4fb1a8cca3ea934125a277c3cddf47b42bb9239
MD5 d34add37cfbf6fdd732754bf1a3ae34b
BLAKE2b-256 d6b7eadce40a01d6b253783259b7350cf167d1ee33c16b714c9631afc662dd6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.500-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2fa98c49dd7d5b6eb6e4217c4c330d357801baedf8900d1298abeab7db3ccde5
MD5 d45c5180f8d15a3901fcdf1e758bb5d8
BLAKE2b-256 e455f884fcd9e4699c1e4af77be21dc0ed44c2a610df861c497e581437a6aa35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.500-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.500-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0260919191a7865e78ff4873d13ffde10554a900f9753909db50681b880ca2c5
MD5 fb3eeaa749e2bd4a3553d2176da18ce8
BLAKE2b-256 01e302f194f682ff7bb8ad2dfa6e9de96933e5a273367cb35440bc20071b8bb8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.500-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.500-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3065178daa69cd9bca28f1fde96c2786e438abea480359a181f875ac19c74e30
MD5 266ec6e7ee155c9e65c59ba44c311324
BLAKE2b-256 85a2f4251d811d5c2edc064c5b1b14247ff9c8bfe78975e6025be08b18014627

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.500-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4b2cce7217c691b6aaf0c7c5a962197c42adc65aec5c945aadce5798c1aaa289
MD5 9c2cfbdda4a78012c72990769fd75209
BLAKE2b-256 a88803f5f0112e123028035dc491cfb776f809035a59090a958d355b3093e9e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.500-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9d705d17d8fb0612f448df5466db402ec53328b1163e133e6262ee9c6db833a2
MD5 f2474649eef1c26918175655c799b117
BLAKE2b-256 97b82efb8d2dfe0d03c951242f038ba6f1a3a6f32dfc1c2fc4c14533b795c225

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.500-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.500-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6b6f40f17b1240f05732f33a25c4c8acd6160da6c77ffa94245ef532ace7819d
MD5 3b5638cbe960ad2851114c2ffc245e11
BLAKE2b-256 a9fe0516be6cfe7bf2fa54e0740b5a6c58f64cc824f8fba28ef13be35704c9c9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.500-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.500-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8824d430e9e1e8177b9686ccbddbaaf1f8e8d48a7c8342ad26af1ae53034cff1
MD5 7f5ae81a3caca5309b822bb7cab2e67b
BLAKE2b-256 0bb1dd9efd5d74f2813e03a5fb6d4df8177992bd9dd5d02ea4862b8f055c6537

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.500-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed2612b4704c20dfd2e6547cde47767a6bd1940979ba8261e7b15b52b2d22008
MD5 bb242c44914846dd61dd4efb37f80052
BLAKE2b-256 e3db6d76baa6f67dcb7756be7f112b059b26a2ab33de06999cc8217c467e20a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.500-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.500-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8ce47a3286584aec198448d6a691b459b6501bc39f9aa18efebdcfbc9e494ada
MD5 dc41d84db5371dc81850023f7c61a2e5
BLAKE2b-256 7de0bef77d051007ff86078ea9f44448bcf3b6f30f9dd0630c9df65cb402dfb1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.500-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.500-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cab3a50498bc2353a6d9f51d641666e1533e66025e9d652265cf614dbc9d9cb6
MD5 95439d9b6ebec0346e5593f102c0b5f6
BLAKE2b-256 99b801b9565baa208364ce3de140f15c506ddd2d63bc43d0b00a191806d87593

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.500-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.500-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a034aef1ad3cf2d269a9d6bcc2333d410153ccdf68b8818e9594544a81b2f8e1
MD5 4554c2a8a57b676cb0717ef9b6142b71
BLAKE2b-256 0fe34260bcd104f09a67ff00a8bc1fb388c09a05706efc1fd672c868f9ab6a97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.500-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3864c39ae0bb510de242a73243bcb0b33d5e9ee2fcd6bf9ab58adcd18c2d5b0f
MD5 18d6dcc1c82c0c42d5ff166a0d5315f7
BLAKE2b-256 b8dbe990c94257f8f512e753595b8ab45a2fda7697a651087acd9df2c91a3825

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.500-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.500-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 86c4a1159d4e84a18504f8884af6da63ebc6748c2cb17892b0cb2a1215c5173a
MD5 663835b319cb5767823b9f3b4c60efb8
BLAKE2b-256 37163b2f3f652332c2642114ab133eb5a57e225c30eb4c6465f7e99b409bb4d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.500-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.500-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 19c1c4a07a9cb40bc404c6349c07835b8e48b851fb9db79637a267286e3ae0db
MD5 e4777d8f1cca744dbf43b389eaa3f4ef
BLAKE2b-256 7ab18c1845c4f26f57f6da09d6d7b86de029dbc8aa51a015f2790aa4118f1126

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.500-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.500-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4c098f57f5a12d5e487a64566d2b0545557ea33e17ea651370d298c2dd800ad0
MD5 00c30629b735b21027fca208dbbd624f
BLAKE2b-256 173125094c732fe6143f13e9b15373c5b3cd81254823c57dd85cd95da4425928

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.500-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d3f4cccf8fbb75b3c4e2abe52ffdc503616495b7828d0ee82ac779320fe168e
MD5 902483ec9283002e949556f66891f34b
BLAKE2b-256 6d53a46a1088b47a7309e9e1eea77b20ee130b76edf7a0e06764fc1e369208e6

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