|
| View previous topic :: View next topic |
| Author |
Message |
tomot
Joined: 21 Jul 2007 Posts: 16 Location: Vancouver
|
Posted: Thu Aug 09, 2007 3:41 am Post subject: 1st equation in some .k3ds files never equate |
|
|
I have been scratching my head, why sometimes an equation evaluates and why sometime it does not, even though there are no errors.
If you take the code below and save it into a Sample.k3ds file
the 1st Equation, in this list of 3 Equations will never be evaluated.
If you cut and paste and change the order, such as to make Equation 4, 1st on the list, it wont equate.
ie.
Equation4.........etc
Equation2.........etc
Equation3.........etc
| Code: | */
Author: © not me
*/
Name: Equation2
F():tan(x) * sin(y) + tan(y) * sin(z) + tan(z) * sin(x)
[x]: -1.5, 1.5
[y]: -1.5, 1.5
[z]: -1.5, 1.5
;
Name: Equation3
F():z^3 + x*z^2 + z^2 + y^2*z + y^2*x + y^2 + x^2*z
[x]: -2 , 2
[y]: -2 , 2
[z]: -2 , 2
;
Name: Equation4
F():16*x^3 + 16*y^3 - 31*z^3 + 24*x^2*z - 48*x*y^2 + 24*y^2*z - 54*sqrt(3)*z^2 - 72*z
[x]: -2 , 2
[y]: -2 , 2
[z]: -2 , 2
;
|
|
|
| Back to top |
|
 |
nextstep Site Admin
Joined: 06 Jan 2007 Posts: 183
|
Posted: Thu Aug 09, 2007 4:22 am Post subject: Re: 1st equation in some .k3ds files never equate |
|
|
Hi,
The problem is simply here
| Quote: | */
Author: © not me
*/ |
Change it to
| Quote: | /*
Author: © not me
*/ |
and all things will be OK.
Also, don't forget that k3DSurf doesn't accept new formulas with names that already exists in it's list. You have to delete them before reloading. _________________ Cheers,
Taha |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
2005 Powered by phpBB © 2001, 2005 phpBB Group
|