useful math

Discussion forum for G-Force users

Moderators: BTT, andy55, b.dwall, juxtiphi

Post Reply
dklr
Posts: 40
Joined: Tue Jun 14, 2005 4:18 pm

useful math

Post by dklr »

I found an expression that can be modified slightly to make many cool flowfields. I've made a few, and I'd like to see what other people can come up with.
The exprssion is:

Code: Select all

tan(   cos( sin(x)/cos(x) ) + cos( sin(y*10)/cos(y) )   )
I'v come up with:

Code: Select all

D0="sgn(
	tan(
		cos(
		sin(x)*10/
		cos(x))
	+
		cos(
		sin(y)*10/
		cos(y))
	)		
)"

srcX="x+d0*.01"
srcY="y+d0*.01"

Aspc=1

Vers=100

Code: Select all

D0="sgn(
	tan(
		cos(
		sin(x*10)/
		cos(x))
	+
		cos(
		sin(y*10)/
		cos(y))
	)		
)"

srcX="x+d0*.01"
srcY="y+d0*.01"

Aspc=1

Vers=100

Code: Select all

D0="sgn(
	tan(
		cos(
		sin(x*10)/
		cos(x)*10)
	+
		cos(
		sin(y*10)/
		cos(y)*10)
	)		
)"

srcX="x+d0*.01"
srcY="y+d0*.01"

Aspc=1

Vers=100

Code: Select all

D0="sgn(
	tan(
		cos(
		sin(x*40)/
		cos(x*4)*10)
	+
		cos(
		sin(y*40)/
		cos(y*4)*10)
	)		
)"

srcX="x+d0*.01"
srcY="y+d0*.01"

Aspc=1

Vers=100

Code: Select all

D0="sgn(
	tan(
		cos(
		sin(x*5)/
		cos(x.5)*10)
	+
		cos(
		sin(y*5)/
		cos(y.5)*10)
	)		
)"

srcX="x+d0*.01"
srcY="y+d0*.01"

Aspc=1

Vers=100
And even more changed

Code: Select all

srcX="x + (tan( sin(x*1.5+1.5)/cos(y*1.5+1.5) ) + tan( sin(y*1.5+1.5)/cos(x*1.5+1.5) ))*.01"
srcY="y + (tan( sin(x*1.5+1.5)/cos(y*1.5+1.5) ) + tan( sin(y*1.5+1.5)/cos(x*1.5+1.5) ))*.01"

Aspc=0

Vers=100
Last edited by dklr on Sun Nov 27, 2005 12:24 pm, edited 1 time in total.

willrob
Posts: 199
Joined: Fri Apr 29, 2005 1:44 pm

Post by willrob »

Remember to add the
Vers=100
at the end of each or they won't run.

dklr
Posts: 40
Joined: Tue Jun 14, 2005 4:18 pm

Post by dklr »

willrob wrote:Remember to add the
Vers=100
at the end of each or they won't run.
I did, but I just didn't put it in here because I assumed people would know that.

User avatar
JayPro
Posts: 738
Joined: Sat May 01, 2004 10:51 pm
Location: Huntington Station, Long Island, New York

Post by JayPro »

In fact, you can technically enter for the "Vers=" any value up to 300.


It's just that the 100 refers to the earliest version of GForce available. So it's safest IMO to make the Vers value as "retrofitting" as possible in that respect.

I hope that made sense.

PS: With all due respect, never assume that people will remember to enter that particular value. Coz otherwise there'll most likely be endless complaining and kvetching to the effect that "it won't run...".

It's best to make sure that all aspects of the config code are thoroughly included in your examples.

JwP
"God is syntax."

User avatar
chkman
Posts: 329
Joined: Mon Aug 08, 2005 12:36 pm
Location: Greensburg, PA

Post by chkman »

Looks like he did an edit and added the line.

Thanks, dkir, it makes it easier to copy and paste them into a text file. I haven't been keeping up with the latest configs being posted but I will try them at lunchtime.

User avatar
chkman
Posts: 329
Joined: Mon Aug 08, 2005 12:36 pm
Location: Greensburg, PA

Post by chkman »

Cool, they look good.

BTW, you could put a comment to let us know what you're calling the config filename.

// dkir flow 1 (or whatever)

D0=....

Post Reply