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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.919-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.919-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.919-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.919-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 61573eb9f4de3bf5252a0116e5fa66a3f19a5061c8d31a6e86e197b7a78a1bc2
MD5 7cbaf430db78e1cdf27ce690da71b4be
BLAKE2b-256 68ef2a2273c2be360e4a97c74eb489f4ae5378458b779e8f28e49be15faf0855

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.919-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.919-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 dcab7c77ab6cb6bb4dbc590317ebf9a67d2a76fc67f0326328396be3fbbc9485
MD5 2708eae6026c32257090b7a512786ec6
BLAKE2b-256 18d1cd81236dad12f1db2bde7faf47947b3c4be53c0fba6903d9049adac25649

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.919-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.919-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1a06880151ec13aae275365158abf1bba16f9d2d01598ef94ccde57da051c647
MD5 39276ff018e2f94b85d69a4e73a20873
BLAKE2b-256 7a162e7cdf0dfeccdf78173d7f195670d587abce227694aa148aae53290403e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.919-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2a0974627276fc810ce80900a31869823ad23bd89ba49cefc525decfd6c0a5ad
MD5 e04aaec36f080f496770572995598210
BLAKE2b-256 dc3d973a1792f48a7cce0feafb9a41890d09c0f387af9c3c742ca93cf4763caf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.919-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8636e10ddee06c49fb795b3262a97239cf7513dd2e3dd00008ff40b4bd231fd5
MD5 758a44838a109873280b4fb51164fe3f
BLAKE2b-256 0e4e8ecf1abca13143fba5c7c35571ab3e251de5e362230a9118b79fd5a03547

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.919-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.919-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6037484c99e5bb06720851a9357b17a8e96f578ba4542f99286fb1bd8bc247ad
MD5 104a5ec13978dac720ceeca5d94b8deb
BLAKE2b-256 c52bdab4e18af3c052ec636a63a9943ddb3e8374152472a215834710e39320a3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.919-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.919-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d67330dcd02fba8e06cb0588e38c7c947d5e322f14d66eeac5038967ab584752
MD5 0cc423ac93e417e79902423e7651a3f8
BLAKE2b-256 cd37dd5a2f01cc3e286f49605a190c85809eacebfba185eee82bde741b29b0ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.919-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce7fa49606e5e5c7c5778974c56f2fadd07196aa490f97f8d10dc8b6de6a1f1f
MD5 9712ef8bba4ce53df7d8164c6ad3e28a
BLAKE2b-256 b4911d89fa55b5f5383e913b772eafb8bec24756df912842dc6c076eb0ef2ff9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.919-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2ff041586386e971b0dabf2c7b4696a57585630a7fad4e9ce881c0d7090d8d6d
MD5 397650369d14eac634a599c18e417cb7
BLAKE2b-256 c90ceb48630f196929742f6fce96b2e164dbc57e84b80b535a79e2432c399c71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.919-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.919-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ab3d078dc0167fe777455fcb59cf2843411f7079b389c56302c5cb59ef35bf1a
MD5 1f7bd61f0ab27c857c2052c138dc5486
BLAKE2b-256 ae78783b5c3cc2939c05638c87936db51b7417b8de710df54537ea49ce0906a5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.919-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.919-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dce4ad2a2bc2a9a8fca4472b3bdd320d62c141c23981b66e822f777ee8d80330
MD5 66b70b46a72fe72a57cf148832da0c11
BLAKE2b-256 bb18a846b0e0e77d79187929579dced93f7897305edeada7ff7fda524a8c0a8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.919-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b869789fa832f7df8ae67faa7245a814751bd35fec062ba48745e470645c280
MD5 e2beaae999376ea21a4ebe4d274e0c36
BLAKE2b-256 84405717daf55dc166a0b54cbe633d4f0d649f9d4e94cddd872c235ef9ee333a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.919-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.919-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 220a93e76166016bed5384a4862325b549ed1ea74fa975552bc9ce69391843c0
MD5 52fbd4c7cdcfcbd25b35ea0af8443945
BLAKE2b-256 6d04e433f7bc67c4600de4b38e2e9bf5bda79e2cd1c68ddee29186929fb49424

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.919-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.919-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 08671e8502bed5a33774390966d0133fe1dd73b64691c50462047ca11fd5f926
MD5 1986df74df4cebc3e37aaa579ec822eb
BLAKE2b-256 ee340a9ce85818cf9de7fc6bc092db8ee491b388e0827392148bb6fd1eefdeeb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.919-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.919-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 21187ce8928aa32904d96324535586b475f92376d638a45007f9394efa874df3
MD5 bfef846dd03c0bd146e0624f8862da39
BLAKE2b-256 853de546199cc54b1906a6222241ee9d2cdd83cdd2ef17030cc489829d715329

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.919-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce55117c68c7e72afd5e134bd87040fb4c5cc2d240ddf01701626792e11527a6
MD5 805885e360c2a918a2d963110e78d450
BLAKE2b-256 d5fea92b67b12c3f43fafa1c1941a3beeda97a30c58d458a883789e24229b363

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.919-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.919-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 933cf19e4384688362e13dbaa33ab35d2473ea4c90c32cde7dff3c9ebb7e5f43
MD5 74bb86986ae0fd4384d748f80ff87182
BLAKE2b-256 0a18405b16671c26fd8b18e4fe8dd7652ddb9ecba2384191d2b5cc209d3d7373

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.919-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.919-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f35faff67d7af2fc07e3022e6ffae49e6fbb3a16942d8ae3d9cd5c698bec3a1c
MD5 96223c854c217b831cf1355ae15defce
BLAKE2b-256 f46588a21c165d1bde3af4910a6b3a7c069b190e485997f206fe5aada0c33359

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.919-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.919-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1d1ac66d4c83caea7106091e7ae2b11d2470e2fd7f7c2af6d8330165d95b9ff2
MD5 64a5a0c12277821c917e90be01bfe7e1
BLAKE2b-256 c08d67e3f8f64019bd7d6f470de128627738a678ff58609cdc7cbb50bced5010

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.919-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3c20bdf794c5f544d510d8c4692b480782571a3f591c454373d1ae187ee4a8f
MD5 747a27666f8ca2326ed61c52fa8c5c61
BLAKE2b-256 9be9129ca7caf29b5512842092bc8d8adede726303a1157d8f06cace40656982

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