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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.879-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.879-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.879-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.879-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c9fbdb72dbaf6a499ba9509de34eef45c7f47b883fb5b640a34a334dada370dd
MD5 7a032af3de224e08538015f7a3580325
BLAKE2b-256 cbc07222234fa90595ea30c2655b0ef160b03ce1623e2d8fdccc2bcbf3adc5b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.879-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.879-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 330a3d58d89527f4ac459cc116ba230319c00a997b66652338a665c561e818c6
MD5 e8759ac8779df7d1304ed4e9ade3377c
BLAKE2b-256 b6dbd706384d68dc831946d559ba28948f7762a073491b23dc6d6d2216bc38f7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.879-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.879-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4f5ba07514894d9b77c1c6fb27aaae70cd64f3933f62997505752608956b03aa
MD5 3b97f20419e9ac7ef410e42ee93094e3
BLAKE2b-256 b9fe3a3a0db56d399fd7185af79918e60e072ddb983088a2ca2d67827bf8ad6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.879-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f63e587367575fa1ed514631d6d0259827692102311261747294548d9f56d43
MD5 4d37a398d1339b05093267135fe0fba2
BLAKE2b-256 4ecf3011c06b28eef1f28015e2020b3f963b68b565064be1ab1fcb2d3457b51e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.879-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d455325dda4881b0b4275715ca256a114f6290669b881e5db2dfb21e0f31d758
MD5 eaf5f73a83baf1c4fcb169846a9d1a01
BLAKE2b-256 8244402b913bfded99fe25999a8ca99aa4ef50895bfee51fe0a9783617437cbf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.879-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.879-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b97b042d0e1a4af6787e5a9ca76a5b6f3a04b3b4eab767e0144c3aae792dd4e4
MD5 c3593d96aa76e8926302247eab089f82
BLAKE2b-256 604517309fd0be720a040693efd7a2734c2780780b4beba8791a9972fb086a22

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.879-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.879-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 771b43156df95154e62e92c070402306ce8c3c9ebcf1513c72b98c414933e551
MD5 5347f2fbb7217a93a578525213902af0
BLAKE2b-256 b3854cf4abc59689eca308bda0ce0788f6dca7e3bf0de121d0d99e523018db04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.879-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f1cefe3f9899084efcae51f011d0a6b3bc8697c5432f9270f2abb471d4db8ac7
MD5 6dd8f201cb621ea1969fa20d9334c0ce
BLAKE2b-256 fcc9b0135426cd5ad2f88a24c98e0568ab331f886835a0a4a8f665b523a8e1a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.879-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fa5da7a98104688e19727bdc61229802c47cd75f8c7a2d145780d2a30b02b835
MD5 ff9b2d049506f587ec57d8362cc87419
BLAKE2b-256 546cc8a6930d5eca7f049ff1eb542d6abed94e5d10631c5f5a642f8f6fbd5c77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.879-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.879-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1d23b72c7a462e1c06a67102428bcbdf35ab2977bf2d5103baffb27ad07ac218
MD5 570b29707bb6dfcb1d9d47e55dc3b596
BLAKE2b-256 9bb52199f1c30f938450ad17b458b38ef0079126134383a70fee4fd985b20b30

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.879-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.879-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8996be64bca195de58dfeab2a38274af99624e704857afed6d1e02a810f545c1
MD5 ce3ff33bbb7e35adc996a9798c475ef1
BLAKE2b-256 8eb94e852e3d2ab4342194c0e2f8b222ec1a52ba7d2de274290f51a0f1d00634

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.879-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aeed4a615f535ce24c9a721c7be926a65f312e2db57a37122b212c9a3cba1a3c
MD5 b3f64e2fc9752bd8f438ffbc137dbe7b
BLAKE2b-256 0612cf1b91cd25c9f3a5e565483641266d3795cb4f9fc68ba4c2f30e00c58c17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.879-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.879-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 87ae7b95c7f91ebbc03501acb16fe41c5bd5d51ddfe46c38bd4145cd820656ce
MD5 8fa808201da69b957bad4a04ad1bc0ed
BLAKE2b-256 9cff651b069032c6e8ae029b135bd8169a0bb0ca4c8664a101affb12d76a537e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.879-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.879-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ba5a6341760e04a370001d8ad2a01ea8eb6d5f51e333e3d890ae5f07364df76d
MD5 9a0c82d305307e36b4f8448524bf4743
BLAKE2b-256 4012630daca85814a4f1a94c95672d61a4e578fe19f88ce35d9d4200eafb8924

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.879-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.879-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2d57d2674353cf34b965e24500e9f953e4ef91989b4822a4b58973a15582b739
MD5 2531dabdb74b7c62980a5e3f6d493ddb
BLAKE2b-256 1227c0a6f3f22ebfc5399b11a5d0c4beb92986311004da1b1d627786d757752a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.879-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6669498eea5dd585b79de3c55cae230a354339f8d48abb04aba804354f2800b1
MD5 9e9c0cd1e51216d29c6ca7bde6338a8e
BLAKE2b-256 50baed0fd13fe226d324553197c339849f9c26467848d6d21921ee97cc4c154a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.879-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.879-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7ef7f7b40f4fb5ddaa77ad40f4cdca50188c8bafe144bbcb18e7632e7466b48d
MD5 a1e55383f0bb417a58e38fb218a9b76e
BLAKE2b-256 1ec7e370c4eea48c477b9ec2669f0570bae7ed33c462000ce72535d63d2e01f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.879-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.879-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c556dae446ef0000d01c05f25497b0b13b8213d23ed8d9ce959e43fceee4bb71
MD5 26e26369fae0e82c0cc6f22b8d6c0edb
BLAKE2b-256 4abceaae81a4566107e4617441db137a6d094f83b761ed782ec3f006438ffeba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.879-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.879-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 16f2be5e3ecb6f6208ce52f1650fe94b19529ea7011f13de54b1519296d0b490
MD5 7ac32cfe49a98f552510346b763c9c5c
BLAKE2b-256 6bc6516a780924942712dbc8c47f35b1d9364f4b4c3051e4a52331586ae5337f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.879-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 be6494526a36798d5748daa67e37bd3b66c65a67002cc9ff1137ff35dadff450
MD5 16d8a874bd585bedded62e8db57fc353
BLAKE2b-256 044a85da58c64d92cd7241bc9352d67bd37b146bcbaef45154029d002a4a9033

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