POV-Ray : Newsgroups : povray.newusers : sum over array of functions : Re: sum over array of functions Server Time
19 Jun 2024 15:43:56 EDT (-0400)
  Re: sum over array of functions  
From: Warp
Date: 18 Feb 2013 10:08:23
Message: <512243e7@news.povray.org>
Norman <nomail@nomail> wrote:
> #declare f_test = array [2]{
>   function (x) { (x)*1 },
>   function (x) { (x)*2 }};

> #declare f_summe = function(x) {sum(i,0,1,f_test[i](x))};

It has been a long time since I dealt with user-defined functions,
but I seem to remember that SDL arrays are not supported in them.

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.