Ignore:
Timestamp:
09/28/15 20:45:46 (8 months ago)
Author:
mmckerns
Message:

add simplify to simplify equations for a single variable on the LHS;
use simplify in many examples where symbolic equations are given;
add comparator function, to determine the comparator ('<=', '=', etc);
add test_simplify to test_symbolic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mystic/examples2/crypta.py

    r817 r831  
    5757from mystic.constraints import unique, near_integers 
    5858 
     59from mystic.symbolic import generate_constraint, generate_solvers, solve 
    5960from mystic.symbolic import generate_penalty, generate_conditions 
    6061pf = generate_penalty(generate_conditions(equations,var),k=1e-6) 
    61 from mystic.constraints import as_constraint 
    62 cf = as_constraint(pf) 
     62cf = generate_constraint(generate_solvers(solve(equations,var))) 
    6363 
    6464from mystic.penalty import quadratic_inequality, quadratic_equality 
Note: See TracChangeset for help on using the changeset viewer.