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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.928-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.928-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.928-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.928-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e04d97193bdf96e102e410cc9c212d4e2333e61cd4edfbb501ed0a434d5cd43b
MD5 ca77c2e7bf3183ca5f9f286951057085
BLAKE2b-256 bd689d194c8e598b6b486084e6b9921030d86b145b19f2cecf2afdf6133efc64

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.928-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.928-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d626cd8a16efd5b05a115c33ac3c9f69066148f668769eefa34fd90aae56d35a
MD5 fd28d50923d1ce33aa01200323477f84
BLAKE2b-256 238ec3fab4a1d228432c8d48af3334fa8617096b6c312160bdd5e66f8aaac22d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.928-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.928-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 73c2e6594ffe63f0d2cadd20782f070098837dbe1325d70eb3a1e0778c807eb6
MD5 52df8e568a4153dedfe2aef8b19ac7bb
BLAKE2b-256 32afaffedf7ef9b63d4875183e09957235b67e6c60445059641fb526711afb8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.928-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98d05bfb3166c9719dff35dc001e7ca6c9ecb3bd636c48ea17d3b55f781bdeb1
MD5 af9cd6faa0db96a53da64e66d1235376
BLAKE2b-256 82be5e15b92b62bd7838768670d84e11420d12bedbcdb760026301842ddeccca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.928-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b90d892c04c7d16407e37bff56c4d5cd2477bd9299828d1b2d5bece3ac0c96ba
MD5 a101d33a159dbe45cb5040d160e597cd
BLAKE2b-256 177efcbe136e1f5c975990ae51cfc27236c97e41f8d8d3dfaac0a6d0063bd5af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.928-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.928-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3b8d9dbe158a87307de3b48aabfdd43d17b596745333136bfd057d8efc496e6c
MD5 a20e61ebfd6b2ef0814d9eb000bcbeb0
BLAKE2b-256 a8c03d5548d402555b1e35aa65def4723ff14c6601095707d8e9e7692c02e62f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.928-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.928-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a1e37ac4db91fe649282cb5937eefb3644a68d2816920925f76e0dc40ad7c90b
MD5 c2ab5451442bba028efbb6431681f8df
BLAKE2b-256 1e3a4ea98df63965617023ea9b50e5c96ff35e81a0fa1245af420ea1b7588a5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.928-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d15e0a8e05e2c45490444e44e94391123f9ce544f03a39b9a3b5f0a051223d3
MD5 ded3bce007de5d9b3a7bd76852b51442
BLAKE2b-256 89b9c8334fe19f695a09e4a77f0e730805e763e4583d6c78b1e9c0794799dd27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.928-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 96d8516d123465b62bbd830a3051d9dbf58eb5de993b4b0a736e328c001dba80
MD5 9ffde8741e2c0c7f19f055adf4a5b81d
BLAKE2b-256 949d4bf3921fd11fdcaa254384b07fc6d4a4dc7ec2073f076baa6bc897538209

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.928-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.928-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e60888b2f0d1468b31546b5143f91366b7d18e7ba00c9b42799dd798bc5b731d
MD5 16ed04d808391fe9ec9458154a6aef18
BLAKE2b-256 f1334f4a56865d4501a2e1f67840cd35d5da342395c58db6e5e5722acad8a7a7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.928-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.928-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0d1823318644c7573e00927ecb1a42d64544643689081a10a313181accf94c5a
MD5 895cb9b9bff3016b4a36cdc4c71671f7
BLAKE2b-256 2537a2b3bbe169e9d55a59dfd132af9bc2299a3feba82a54cc65dd2ecf9ccd6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.928-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 45a9514309182257e354b01b6f04f5148dbdb979379815fb0eda9d64e344b520
MD5 2e94325080ca3a170292468a73bb9e39
BLAKE2b-256 5bb614fbe7277540fae7cdeb53ae939e3097908e5e9fd00c5141c60baa904435

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.928-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.928-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4494144d6839858cd2f034a78497f0e490f96bc50cdd304a2fe57a29ae8510d6
MD5 386bc8f2587aa9b242c617b43d89acbf
BLAKE2b-256 e297b764ba2b1a2c1a7e7760f4ad26ad1d038c29240a10a1b360dffad6284c0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.928-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.928-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 888a2c012e1955ea3685b1a3103ade0a9c0de2917196bd666cc5c04bbb4b006b
MD5 a9bb1d0889799e86c64d6b5b2e95606a
BLAKE2b-256 a59f2352e2b61ce25ec4fe41dc51d2864b4f84fc5d4cfd423fb8611a3f9f68cc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.928-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.928-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 97f8f65086eaa05531d497ab81a0636b4f737195d1fb7d96b18642dba4e1360b
MD5 978fd499c93b79ffed227baca345b884
BLAKE2b-256 596d87855e6e408a6b4ccd5669590d3a900835b7595916f141894a6f1d743b13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.928-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d7883f0ea9e1b9a63a8af772f071c296ba62771cde5b591204c19cbe9194e821
MD5 8af47def7f293161e7582255d752621c
BLAKE2b-256 2ee6548e1f8852238723a149c3dd1808263b6073562b89b41cfa300c8a05cf8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.928-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.928-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 45d61f51934de28bfc233d67d88793a77ea8e23d8f415c241153ae1326964490
MD5 1d42b02dca69c82874205ec334b491a9
BLAKE2b-256 fb5dbafd80eac0e0f99192b6c7454c91f56684456b430335c47d79983fd9e581

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.928-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.928-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 98a5f444438739e6c392ad4d75006cffc42e2a6599d595f4d970cd10951c6822
MD5 dea2f3f04699e3cae6a81ce66bbba59e
BLAKE2b-256 738df8b5eb49366ec01912919b3d982eca91e6e2230142c0ac21de9650a9bcab

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.928-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.928-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a8157c3af13132cda79aa470ddef574a65c853cfb1f3ea8dd524d5cb475ea5cf
MD5 57a152cd0d42bdc438b7a6846f51d9f5
BLAKE2b-256 7c9daacfc46135568aa8a55ebb2ffda0424979ffb14950b13703f9ca3cc564f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.928-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98f11262b8c95d17438a9ce78a6abb94477afa81a2f1caae3590235449b87606
MD5 37c1885ff794ae35cb04b9779e7050f6
BLAKE2b-256 cec590508b0d1b83e935b6f7ac6cba4984560b5f7dd0d606a7d182d1f08b3672

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