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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.740-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.740-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.740-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.740-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7997f66c9f636845777c8a9a21735d62b5eb1e323e8791cc49694db24376fc68
MD5 c9ae3e9b9bd79cbffe9828cb4822d0b3
BLAKE2b-256 a4e1001d90cfb8530570fe8f460897735cb33a7285bc427ac462604607e6d90f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.740-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.740-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 843262a543ec0460acdf4fb68568cd83deb10bfe915808293646b695db56392f
MD5 971d49d192f5e323986db16aaffa3e81
BLAKE2b-256 1698472e7f2305a911cb47421428ab19a29f1c6262eb5434d35822795c7c2a68

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.740-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.740-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 318b201c32be046b68b2f0498236e1192e0ff96f66d3eb1c27847b7e7ca17766
MD5 29ea60990cb580de7748947551810a7c
BLAKE2b-256 5ac14d193f15d94b0fd488b79793ee98fabcaa6af0c3b0afe0b9ca10bdb241eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.740-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c96e8a2cbe0188737f53435189b72d022501d951b27b801e1e0e5393e3797e9
MD5 f62cfdeec4396b0530a1e0e809493bd1
BLAKE2b-256 8c7914c3e211dc573e2b3b6f189e13bf968e729cc01213a5c43687b69bec5362

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.740-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 307ec58e33261669e5d6ac86ea344ad6f01eca0e63737063f634feef5f64386e
MD5 b90c603904a84257cff21820e67c2f72
BLAKE2b-256 290abca1263f0c176a11ab1ed65c21bfe2a3fd158eea44f2892c8c463ca8a153

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.740-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.740-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6168466faa1fd4ee4f41d58b42f934004743659f3e5aadad32eaa38090acbde0
MD5 4e405900b9897ba1a021225fb92b9397
BLAKE2b-256 231c110c4ce1d22ea2cc6015dbb9fd9bce0731dbe30a5b2f94767974fe37b81e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.740-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.740-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 66720e8377a0a80fbaeeca60c8e252e8b15c23a786c71755de6eb242aa3ffe80
MD5 9f4900fffbd14ecf606580147a4d0732
BLAKE2b-256 65530ff3fe1b13113f20d05ab70d4f5d07dbf83fbdbf13cc764047143963b1fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.740-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2a1fc355d68a820eb779ad361362ae022ba39f94cbceb6d0a2ddaaadc04667ad
MD5 3de36d879383e692cb36e79ab781ad2b
BLAKE2b-256 2abee0c49c69682bf8c8911eb41841b53d8dbca8c01090dd91870a4dda34790f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.740-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 693d4f9f2c36a6d73c3c5f7df156ce659b32319fd9071e403f340e6523a165b9
MD5 9464e7e22504dac1dd9e3a6c120ee806
BLAKE2b-256 3c7c841f14ae074e6a8ec130093fdd595ffa80ba904e190687c3f605ddd98f98

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.740-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.740-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2549f7aaa63a2c79d563c1eeddf19a9aa18e4d38a55faced5b591f64f9ee1479
MD5 4b5bb53efee9fb33359d952e36727c26
BLAKE2b-256 d89c561b01cd8d9c1e5e90bc021acad92b3578a4aef257fd13d47ef3af4485d3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.740-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.740-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b150e77fd735c915b99feb1178d999501ad67b80903dbf4a5d0ceca732cadb6d
MD5 185ff02105d446239ea070f5a666b1cc
BLAKE2b-256 9d397e6ece632d58613f8707edcdd4ea0ecc0542e42787cddbfe608aea3fa221

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.740-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7375bfe1a3daf5e1d671bce45183227a3260f40437c3915c8408f821202c9e2
MD5 1e39ee82f804ed74efbc5b67e10af75a
BLAKE2b-256 f6ae7c131ad43bf58f52bdec17738f86e7276b6e040aff21f343bf5eafca1c51

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.740-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.740-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6d24dbc5c1b198d823eb1199e48dc68c98ae7808b6457bef5f56c08143d540b4
MD5 097bb1ef07996126ecdeff2cb7c0e14c
BLAKE2b-256 69eadd7df5790241cf09dbd1235a10aee7a3a12e3a9604f9b510e444934ba132

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.740-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.740-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6099aefcf29403e4f805da6471693c3535d4e8e081d308904ce3addea662d6e9
MD5 1f8c5518c092dc6cafc4980356f2dcca
BLAKE2b-256 39893dbe59c00636ccccbf9b9cbbb58fbf27bb5440aa083d119fa8142b1d158c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.740-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.740-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 00d7b3df6fa4b8a60e0db12cf1b784e3a081c6ba92a89b48319e18cd023bf195
MD5 98e43db705cef2a0daced614e6298118
BLAKE2b-256 1c4c369beccf3d989139c65665b877ce9571ccf90491a3e3bc46d4a72565fd1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.740-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 12ed77a3af768f67bc4e3d0ef221f6b2e040c388a7aac19df8142b6e90806f10
MD5 089c2abf18d4e48d6a684a646a23e2e5
BLAKE2b-256 f6b6718dcd66e225ed54df546ce1ed2d34e3568c1e6a723aef152248d4e83287

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.740-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.740-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 382171ba6c520225892e674f333952cd8c40a56ac97958c1fbdf76e72f52d004
MD5 04ac76d91e36aece8deead097bba428c
BLAKE2b-256 8e0433b9820da21933c4f6b3053ea5cd65afbe9c16b72fc1b043edafce44807b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.740-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.740-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 95918e4679d5aa07bc7054a29d436f8b90a825d426ebf5db15496c30ddf0b9fc
MD5 d5fe3c6b0850d3f90d39567520550097
BLAKE2b-256 ea491c550f46da4604a7051a6f1a82b39a706b40cf2f8d8b2f19297d28c3c626

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.740-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.740-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e931ed28d875d0a024266ee73a92351ce0ff734453344078ee6d8cccd399aa94
MD5 83dee82bf9c1c0a78b40705c5182ab3d
BLAKE2b-256 18832ce1b13e506fd9fe9461529603e3691774c9c76be0f2e33d3ab4532fa17c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.740-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 165dcccef04b7d96a15ee15706303f99317b414cfeb18d6a9dad03f989c7e9c3
MD5 088fede68d4f750aeac8111c9b7f49f2
BLAKE2b-256 1016778ac39b21fc11d873a2bc9b5d5ac4dcd4f1ce8985361f02f63caa691e6e

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