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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.204-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.204-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.204-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.204-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 96e275dc2e04bdafd7b5bdd70c03e5a600327134ea28dcf1001f01d5a2dc8791
MD5 faf8ee2dd448cda711b798bf5a5f06a6
BLAKE2b-256 87c3d3dc9b63209c3b1d336fbbd91d4d314a6c7f3b0fbc6938bffd9c511cc305

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.204-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.204-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 43830700d7d9f25d7261840135312b76c2c7153679219c5847712d353884eca8
MD5 ebbaca2dea4796e25b416da237ecb980
BLAKE2b-256 dd88d3c98aa81435a1b74f1838a1dd508d6d8f2eb75ba98d3a5fd8ff9fa1b8b1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.204-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.204-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d729ae85ae4a55e885f6d09213f2799005378fa789c84504698d1ce5428e1526
MD5 cc36e7de3d0e227c899a97d1f345d602
BLAKE2b-256 183e0891e0d4f634c9b19bd5efdd7aa79d5daef7c0cab1ec4449f82ea52eedff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.204-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7281997da3a9fefbae119a0c156745e520e84f730f44de49f3b016edd01ca2d8
MD5 b765bd21cb63d4491909060f8aa8d9c6
BLAKE2b-256 14f47bfc2627c432c0e3d026a592c9720914cda568a2b152d82d4485115bd58d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.204-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f4bc19fb9f64f75ebd1f5ec6cfb38ce2110c715e528bd0b98616f05e41cd256b
MD5 a4cf823be6c5774016a8cb113e94bd45
BLAKE2b-256 4c84576053a1b4c53035fadf4f70206b3735b9691f1ebce33da58ba093f52250

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.204-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.204-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7a34ddeda84c1ddf6038243d42bb472a6ba202d6f55ce134c80937da02c2694a
MD5 47794aeed1e1647244773f988c1c883d
BLAKE2b-256 890865fae44d45f2cf97bdf619aa2c85c05994ba3bab65446a206373b54a0854

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.204-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.204-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 09519f43a1a4bb1ede05145120834920ac0cc76421d6c407a4dd062d356d76f0
MD5 e3752ec0205b001966edbdc07c49fd76
BLAKE2b-256 8a33940e8f3fbb9cf42780960ca9f999680ba1032730727c5a04dbd94e4d3119

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.204-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ccecddb08e60d4702d883032d745051eff7e9059591f4bb5eb67de56d7c8d5da
MD5 3a7d87d24659675a5f2847bc6c3b50c5
BLAKE2b-256 85c1ede2d3ca1653aa3ed2fd409da30c54a00a86ec4afe09e97187ddf9bfe948

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.204-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6726ed5d569a2769376e62ef156309c9a71f9c6421d9190b9428c76514b20ad4
MD5 5505ac4e9187382e2bb6df4aaa17755a
BLAKE2b-256 95a3c91a5c25e88e0352c613d98af667e4a1a3a0dfd408eaec3f2f715c154b9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.204-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.204-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f8ecba5dcb8e82ef35bbe08df4509b096da754a1552538b2142a65b056fd8cc4
MD5 ba5b53976c354e0d36bb2a3747a78835
BLAKE2b-256 89525adbbd1e6359270d8ab6de6411de328ddc93c43f46e7ae6bebc5b75fefd5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.204-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.204-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c550639bf83e28b82f2a6c7f2d15dec0ee0f9d5660b5e699ff7ff5258ea71883
MD5 66eee38315ef6731d66b602b8493c2b0
BLAKE2b-256 257fbc2bd38cbaaaf76116f9b1fe3f060a01549ceb5dd44fd642a93ff19be7dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.204-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 69b46077c5ed8a54dc812c64e859ead9c502d99e2b139edca29ed9fc47b623e6
MD5 d457317c681c7ce92bc0fb25324287bb
BLAKE2b-256 df822a3d35a68598f4a55e7f8f3494b790ade48338b757a77117165c7bf7d0d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.204-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.204-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 462c58ca15dfb9078fe8c01d7231cc1c6a33ac4af2d7a042293d58b2805b28a3
MD5 60b53f76f2ffa597aed0e180c6d67787
BLAKE2b-256 2a359e7b698ff42de362693be2374ecc7eaf7b68a0f922bbf46beb76525f4316

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.204-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.204-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 055aa23142f03778f1d14e28c230f192ae6224294ed90b9fe375f661f8210a97
MD5 4071f49e97ff44fb80ee66381a69ac81
BLAKE2b-256 9a3916de0dddcafb15085db31bfa54baed14a350310893de2a5624c4aa1ef027

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.204-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.204-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c6c21543cd77ccee8f9b3e004f92962b50b20ede03d725f908e5bb4773582d51
MD5 92afc48e7c4be8287899da201b9ed647
BLAKE2b-256 2a162cdd67f33634239d8cd475d7c709be871596ac27f7907440a190e3ce0018

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.204-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a3b3226dc5e546350108fa1fa49e52957bb13dde4739d28a37c16e399b14d816
MD5 dced522e24a4e72486b088ce500ad92d
BLAKE2b-256 2a94fcbafef9423f12f142409d6f0de03217953ad814d987d96d4483096a70c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.204-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.204-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 37cd2c6277ffd2ea57d8611bbeb5434aaa1be921f07f2e935f19e971d89e5f5e
MD5 52321e678641ce7cd0c65021eae15447
BLAKE2b-256 ed45387fd438ea0f371cf5ed3d9aec01c28b0a05a5ea1702acd6a85b6a92c8ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.204-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.204-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 30a58706397ea0f35664ea7f50c9c14c9c06e0601d6d2fc3b89d3a3ce6c9bcda
MD5 8f96be30bdaf536b0fd5b59524bb2512
BLAKE2b-256 8103cc782315befbe1e3dbca92d18b6e35dbca01e9b28a510f52bcf08c253dfc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.204-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.204-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a1353325e51d81068b239b5d316d22aa0640a82da5ae8da9b669d78811952b77
MD5 936dfb0a2b77f200b1d1e9d06d763d84
BLAKE2b-256 4361dfc6094463b29943aea15be7ea06034fb1ec8d68efa76356cf22d56e5508

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.204-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 798cf13c59d632d48edbe3f57bf1339e9f597006907489b8fd01d8ae43a282ed
MD5 57079500e5902736156652c09cff5655
BLAKE2b-256 f0c786c0bb68e207b3e061af8cb814a09a5b3ff57a61e53ccf6a82f1cee72874

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