Giter Site home page Giter Site logo

python-procedures's Introduction

Python-Procedures

This is just a repository of short programs like recursive selection sort, recursive map clone, and of course FizzBuzz that I've written.

NEW

geneticmax.py uses a genetic algorithm to generate solutions to a multivariable optimization problem. Fairly easy to change to support different equations.

OLD

shakespearerhymeprototype uses all of shakespeare's sonnets, arranged in a nested array with each line a string, gives a rhyming line of iambic pentameter for 1032 distinct words, 271 of which are part of english's 1000 most common words.

Note that sumfunction.py, maxfunction.py, mapfunction.py, and selectionsort.py could all be written differently by using built-in python elements and avoiding recursion. However, the point of these procedures is to do functional programming in python.

calc2tys3

From Professor Ortiz's test your skills #6 Exercise 3. Suppose a, b, c, and d are real numbers, with 0 < a, b, c, d ≤ 50. Alice computes the product of these four numbers, exactly. Bob first rounds each of the numbers to the nearest whole number, then computes their product. Show how differentials can be used to estimate the maximum difference between Alice’s and Bob’s results.

python-procedures's People

Contributors

philipkiely avatar

Watchers

James Cloos avatar

Forkers

adrishmaity gridl

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.