Git Product home page Git Product logo

programparts's Introduction

programparts

C language programming examples.

##Overview: This repository includes functions for general purposes.

Boyer Moore search method      ...string matching
Gauss Jordan iteration method  ...solve simultaneous linear equations
Power method                   ...search largest eigenvalue
Least square method            ...get approximate curve
Quick sort                     ...sorting algolithm
etc.

##Description: this repository made up with 2 folders: lib and src folder. The formar one includes source files and header files for functions. The latter one has main functions to test functions or stand alone program.

##Usage: You can use these functions in your projects.

##Install: use make to build in folders under src. use gcc to build standalone programs under src.

##Feature: cording rules:

1. Use data types defined in <stdint.h>.
   This is for portability.

   Some of data type has different length in different CPU.
   For example, 8 bit microchips like PIC16F877 has 8bit integer,
thought my PC has 32bit integer.
This rule prevents potential probrems caused by datasize, such as
unexpected overflow.

2. Give comment for all fuctions.
   This is for maintainability.

   It is necessary for proper use of these funcions.
The comment must be the same in source file and header file.

3. function arguments patterns should follow the rules below
   This is for usability.

a. VO format naming is prefered.
a. pointer for array must be xxx[], not xxx*
b. the order of arguments is <data pointer> <solution poiter>
   <initial consitions> <other conditions>.

programparts's People

Contributors

mkaminaga avatar

Watchers

James Cloos avatar feixiang avatar

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.