Introduction

Linear Algebra and the C Language · Wikibooks

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From Wikibooks, under CC BY-SA 4.0, as the source states it. This page at Wikibooks.

    Introduction


    For C language:

    On Linux you need to add the -lm command to the command line to link the standart math library to your code.

    • compile : gcc -Wall -c "%f" -lm
    • build ..... : gcc -Wall -o "%e" "%f" -lm


    • Copy my library into your working directory.
    • Each *.c file is an example to compile and run.

    For gnuplot:

    Linux :

    • Run a C example.
    • Add a new window in your working terminal.
    • You will automatically be in the correct directory to launch gnuplot.
    • Type : gnuplot
    • Type : load "a_main.plt"

    Windows :

    • To select the correct directory in Windows.
    • Choose the icon ChDir (Change Directory)
    • Then the Open icon to select the gnuplot command file: "a_main.plt".