xforms for Chaotica
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
683 B

<?xml version="1.0" encoding="utf-8"?>
<transform_def name="log_pi">
<!-- Crystalize added a pi rescale -->
<node name="input_params">
<real name="log_pi" >1</real>
<real name="log_pi_base" >10</real>
<node name="internal_params">
<real name="weight" />
<real name="scale" />
<string name="winter_init_function">
log_pi_init_result(log_pi * (quartpi() / 2.5), log_pi * 0.5 / log(log_pi_base))
<string name="winter_eval_function">
scale * log(dot(p_in, p_in)),
weight * atan2(p_in.y, p_in.x))