POV-Ray : Newsgroups : povray.beta-test : error in SQRT : Re: error in SQRT Server Time
5 Nov 2024 05:26:16 EST (-0500)
  Re: error in SQRT  
From: Ron Parker
Date: 6 Sep 2001 09:31:15
Message: <slrn9peul5.voj.ron.parker@fwi.com>
On Thu, 6 Sep 2001 15:26:50 +0200, JRG wrote:
>But I tried to define a sqr macro as follows:
>
>#macro sqr(A)
>A*A
>#end
>
>and I got
>
>Parse Error: Expected 'undeclared identifier', sqr found instead.

What if you define it as a function instead, since that's what you really
want?

-- 
#local R=rgb 99;#local P=R-R;#local F=pigment{gradient x}box{0,1pigment{gradient
y pigment_map{[.5F pigment_map{[.3R][.3F color_map{[.15red 99][.15P]}rotate z*45
translate x]}]#local H=pigment{gradient y color_map{[.5P][.5R]}scale 1/3}[.5F
pigment_map{[.3R][.3H][.7H][.7R]}]}}}camera{location.5-3*z}//only my opinions


Post a reply to this message

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