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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.45-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.45-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.45-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.45-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.45-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.45-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.45-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 00a7f52128f73adb521ea8684e5b3f9059ac7bb662199d7bcc2f456df125c390
MD5 9a073acd027e703d612189af83d8b1c0
BLAKE2b-256 af1b512b3d24833c0534dfcc4188f5866e708be45fac25e17c77585088612482

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.45-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.45-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ce93f466c525a9cf37fd45676695492343b6d3d2517f42f23e946caf6e9f42fe
MD5 c448e09a896f5e24f86a64600fe2708e
BLAKE2b-256 f9b3c1c2a72b2816e72ecc3fad7595f638a349677dccc1df040c6ca57a82943d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.45-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.45-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8b587594adc4fbc2f107b5f9aad616c4db58f8ef4c2ae0ee489e4e1da3cec102
MD5 91846ee8a3ad371e319e4a1aabe3fe1d
BLAKE2b-256 0dd53bc50b64c39ea27ee5e9f2c1c3009b01f6611d4606cfcd252ebec1435d84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.45-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a95f7c358cd82c2c9afe905d5b613de4d8f1b43f58873c8905368fe740aa7650
MD5 9610ca308ade40306620124e2faf1e50
BLAKE2b-256 a2a3ade232208241cf6f4cbfc60e882ae060ff52fac4f946f70ad0b92f2551fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.45-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.45-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f8f9d0f175c3b7882239ee88304688942454ceb9793232321652e23daf9e248e
MD5 9ad3490cf1d288b07999478b4d871458
BLAKE2b-256 4b3c2d12f0e41734d197c90de6fa49685e90c8a7c090fcd96c8fdfb776b52565

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.45-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.45-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a0a0a1847d985aacb459612263382e096f87ed367d31f5a341d81639980ad2d2
MD5 22ca9806989dad68c9953c584b1805ba
BLAKE2b-256 477eacf1975699e95ec4c38a5ca3b5c011d6563339a99ec314eb743fe88c7347

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.45-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.45-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1adea4c6ed6de27c00ebcfe6a4c654346aea061041b1021dca13f46a0d277340
MD5 5912daa740cc7b8e6998c3461cff9a93
BLAKE2b-256 967f633e661fc47c24b59db8a326df07d49fe5decdffa25cebef83d294ba9fb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.45-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 880121a607dbb47b36c6ee6a39a52e0a654ab924ea5d231c72fdac982437b93a
MD5 a3abd3b42ca7c38e4e9777422539a838
BLAKE2b-256 eb2f2d20dba31267b4d3a895c1c3fdaa922cfecd5f43fc823ed697536225d9cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.45-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.45-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 52f2cc2a113d25c230d4b951f6fedeb4847688ed8befcea6a8e038deaf38c88e
MD5 372a3b51a7248cd14e13b6bbf5ce860e
BLAKE2b-256 d4695abcfa8fdfb7f4675c1477e00b0efedf505b136dd78d7dc1f32af9c558b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.45-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.45-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 20483fef48b86ff91916612e3906847c2454174915471357951c1b1b5f86b44a
MD5 279b374e3abaa2f15528c8f5f608d76e
BLAKE2b-256 aaed7fe523cbebf129a2c20e217499ac6d8e0344dc407bdc4688909f28f4690c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.45-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.45-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 45fa6631da2a897dca6cc84631a573e1ab94d399530f5ee8a8ca45a508187caa
MD5 1d841bf2a9fab7f94057a3357232e064
BLAKE2b-256 ff0405a58a8e533bd00a33ae428d30045152d30c9e08f3905f2171e6358d0457

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.45-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5eaf71b0d545be05b6e9ab02c6d109fe913182f8e0487acacbecc48c0c47d4d
MD5 ed375709c69c1b3103bfb889c8523fd5
BLAKE2b-256 c7a4b3f3e87b7ebd7f522d00dc9c444c9527498720c2548bc33761173785260b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.45-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.45-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ac6c0396e4b51a6f3f81244f1169c82bcc2369b9cd69a44b618b973d56192b68
MD5 25900991f1cbe15392290218e8866f14
BLAKE2b-256 1be8f3ac13641d3aa74a63a0e01199b35e0fc1e3fa228df9247f4ff519564a51

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.45-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.45-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6e19e4911910347de5945ca137e3b5571a90f550148f8176b1168c5c9c99826e
MD5 ac972cd76e22867b8717312eb8f046d1
BLAKE2b-256 1eec2db201f99df1628497f2b1372f6f6d732b1ea4dbe4e319cc7c1dd8c8e313

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.45-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.45-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1eeeea79c959cb534292b214071793df2069fe5ff3a5feff3eb0990de42cd25f
MD5 530aae1948277c15e345d984af29f3a3
BLAKE2b-256 09d23847e91f4118cd1d3005de0eccce81f6c8cb426b6df239adbebe30ac5fb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.45-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 15856f72e8e0d9b8f0e02d34b0dc316540981e717c5a4337610acd7420770ff5
MD5 39b3a02d2790234a837e20f7027338e3
BLAKE2b-256 3ec38b3115a37e6ed753b12175c341e67237667b2e7334373e1aa43494236350

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.45-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.45-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8559098f3870b85566175700ea3e117947fb623ada5096d2946908682678719d
MD5 33bde0adb05d895cd73dce9d185888ba
BLAKE2b-256 131185dcb28b713780ab9f1c17c4aab4e78eb7c820f0ab698f3b825de2c9c9a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.45-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.45-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ae70a208157adef1088f5e499a3477aae9f329f4b7e957583111410328040e74
MD5 281fec306534301254a9c860fb67b9f4
BLAKE2b-256 982ea2b14eed8860c4d5d6daffbdf99d7b155ed147bdff6bf50c591f215eff31

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.45-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.45-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fd1e6cb9c073c122ce9a9543aa1854c2717a5cdd9a337d06a06b3bb0559f95ca
MD5 a7eb35a9eabba435faf224176754fd73
BLAKE2b-256 e850e180bf2eb89e1ffd8e849e248a7ff70d9c625bc8f48f0d8d58c96d8813bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.45-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09c4c0836e361e17a829a2eadc8490a4e6b1a897aa9784fd1b5ad8ef438e06a4
MD5 c8aa8b93e7edc22fc24e54a264f99ee3
BLAKE2b-256 b2bdc20f06fe845438d154f10544e649b98f59401882930aef7624b1e4bc7f34

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