|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Wed, 29 Nov 2000 13:32:20 -0800, Ken wrote:
>
>
>Ron Parker wrote:
>
>> How did you do that? POV doesn't have a ^ operator.
>
>MegaPov does in the isosurface feature.
Yes, but he said he used #declare.
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <slr### [at] fwicom>, ron### [at] povrayorg
wrote:
> Yes, but he said he used #declare.
I wrote a patch which allows it to be used outside isosurface functions
as well. However, it doesn't do the precedence right, and I am not
certain how to fix it.
--
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/
<><
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 29 Nov 2000 16:45:34 -0500, Ron Parker wrote:
>On Wed, 29 Nov 2000 13:32:20 -0800, Ken wrote:
>>
>>
>>Ron Parker wrote:
>>
>>> How did you do that? POV doesn't have a ^ operator.
>>
>>MegaPov does in the isosurface feature.
>
>Yes, but he said he used #declare.
Ah, I see. It's been added to express.c in MegaPOV as well as to the isosurf
stuff. It wasn't added correctly, though; it has the same precedence as
multiply and divide. We'll need to make sure that gets fixed in 3.5.
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 29 Nov 2000 16:53:30 -0500, Ron Parker wrote:
>Ah, I see. It's been added to express.c in MegaPOV as well as to the isosurf
It's worth noting that this is not a question for .general. If you're
using MegaPOV, and you're using a feature that isn't in the current official
version of POV-Ray or that works differently in the current official version
of POV-Ray, you should at least say so, and you should seriously consider
asking in the unofficial.patches newsgroup instead.
Is this in the "Welcome to the POV-Ray newsgroups" thingie in p.a.f-a-q?
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Ron Parker wrote:
> Is this in the "Welcome to the POV-Ray newsgroups" thingie in p.a.f-a-q?
Generally but not specifically.
--
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Ken wrote:
>
> Ron Parker wrote:
>
> > Is this in the "Welcome to the POV-Ray newsgroups" thingie in p.a.f-a-q?
>
> Generally but not specifically.
Actually it is specific -
"*Unofficial Patches Group
There is an unofficial patches group where discussions on using other
peoples modified versions of POV-Ray are held."
--
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Greg M. Johnson" wrote:
>
> It is interesting that when I do a #debug for a variable which I have
> declared as [ #declare angie=2^3*4^4;]
> povray tells me it is 1084576, when I paste this text (2^3*4^4) into
> Lotus1-2-3, the result is 2048.
>
> The Lotus 1-2-3 answer is based on the hierarchy of operators I remember
> from grade school. Is povray's hierarchy of operators like that of C or
> is it "new"?
When in doubt use parenthesis. They rule.
--
Brought to you by Weyland-Yutani
Making Space a better Place to Scream.
-- The Iron Webmaster, 255
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Ron Parker wrote:
> It's worth noting that this is not a question for .general.
since it's a math question, but then again povray.new-users since it's a stupidly
simply one, or even povray.off-topic, but the experts like Ron aren't subscribed
declarations in 3.1g.
:-|
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In perl I get:
my $Calculator = 2^3*4^4;
print "$Calculator\n\n";
This prints 10
$Calculator = (2^3*4^4);
print "$Calculator\n\n";
This prints 10
$Calculator = (2^3)*(4^4);
print "$Calculator\n\n";
This prints 0
$Calculator = ((2^3)*(4^4));
print "$Calculator\n\n";
This prints 0
$Calculator = 2^(3*4)^4;
print "$Calculator\n\n";
This prints 10
--
Cheers
Steve email mailto:ste### [at] zeroppsuklinuxnet
%HAV-A-NICEDAY Error not enough coffee 0 pps.
web http://www.zeropps.uklinux.net/
or http://start.at/zero-pps
10:55pm up 50 days, 1:19, 2 users, load average: 1.08, 1.09, 1.03
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Steve wrote:
> In perl I get:
>
> my $Calculator = 2^3*4^4;
> print "$Calculator\n\n";
>
> This prints 10
> [snip]
Looks like you need to reread perlop. The caret (^) in Perl is the
bitwise exclusive or. Using ** will give you the expected answers.
HTH,
-Alex V.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |