Ignore:
Timestamp:
Oct 23, 2009 7:56:25 AM (11 years ago)
Author:
dkearney
Message:

updating potential apis for c cpp and python. adding random() and diff()
functions to the rappture objects. objects should be able to generate a random
value for itself based on how it was configured. objects should be able to
compare itself with another object and tell us what the differences are.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/objects/app-fermi/fermi4.py

    r1581 r1586  
    11#! /usr/bin/env python
    22# ----------------------------------------------------------------------
    3 #  EXAMPLE: Fermi-Dirac function in C++.
     3#  EXAMPLE: Fermi-Dirac function in Python.
    44#
    55#  This simple example shows how to use Rappture within a simulator
    6 #  written in C++.
     6#  written in Python.
    77# ======================================================================
    88#  AUTHOR:  Derrick Kearney, Purdue University
     
    5757    lib = Rappture.Library(argv[1])
    5858
    59 #    T = Rappture.Number();
    60 #    Ef = 0.0;
    61 #    dE = 0.0;
    62 #    kT = 0.0;
    63 #    Emin = 0.0;
    64 #    Emax = 0.0;
    6559    nPts = 200;
    6660    EArr = list() # [nPts];
Note: See TracChangeset for help on using the changeset viewer.