Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#76 2009-11-20 10:54:25

SuperLynx
Member
Registered: 2009-06-28
Posts: 335

Re: Expression Formula

I made some headway hopefully this opens the door to the other expressions in the thread and how to bring them all together.

Sin(Fc*5)
Sin for FrameCurrent multiply by 5.  Which is saying starting on the current frame multiply the Sin by 5 (the peaks).

Offline

#77 2009-11-20 19:04:07

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Expression Formula

Hi SuperLynx;

That should increase the frequency of the sin curve.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#78 2009-11-21 13:11:11

SuperLynx
Member
Registered: 2009-06-28
Posts: 335

Re: Expression Formula

That is what that does, but how to I put other expressions within that expression ? As in controlling the min or max.

Offline

#79 2009-11-21 14:04:08

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Expression Formula

Hi SuperLynx;

Have you tried using the Cond statement yet. That is the key.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#80 2009-11-22 04:01:32

SuperLynx
Member
Registered: 2009-06-28
Posts: 335

Re: Expression Formula

noise(this.kine.local.posx,(Fc*5),this.kine.local.posz)

That expression works as well for applying noise
this refers to "itself" kine means the kinematics.local is local position (can also be global) and posX means Position X or Position Z

If that expression works and Sin(Fc*5) works how can I apply noise to a Sine curve ?

Offline

#81 2009-11-22 22:31:33

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Expression Formula

Hi SuperLynx;

Doesn't Sin(Fc) work?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#82 2009-11-23 09:53:27

SuperLynx
Member
Registered: 2009-06-28
Posts: 335

Re: Expression Formula

Yes that works.

Offline

#83 2009-11-23 13:20:21

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Expression Formula

Hi SuperLynx;

Does just Fc work?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#84 2009-11-24 04:02:17

Sarah Rebekah 13
Guest

Re: Expression Formula

Did You Find the Answer?

#85 2009-11-24 11:23:21

SuperLynx
Member
Registered: 2009-06-28
Posts: 335

Re: Expression Formula

Expressions are much deeper that is just the tip Sarah smile

Offline

#86 2009-11-24 12:11:52

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Expression Formula

Hi SuperLynx;

Yes, but what happened when you used just Fc?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#87 2009-11-24 13:12:27

SuperLynx
Member
Registered: 2009-06-28
Posts: 335

Re: Expression Formula

It made not a sin motion but rather a slope.

Offline

#88 2009-11-24 14:22:29

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Expression Formula

Hi SuperLynx;

That is fine. We are now in positon to try the cond statement. Try this:

cond(Fc>1 ,Sin(Fc),Fc)


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#89 2009-11-25 03:34:19

SuperLynx
Member
Registered: 2009-06-28
Posts: 335

Re: Expression Formula

Bobbym that conditional statement, worked.  Here is a picture of the graph of what that expression created. 

expressiongraph.jpg

Offline

#90 2009-11-25 22:43:39

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Expression Formula

Hi SuperLynx;

Does this work?

cond(Rnd(0)>.5 ,Sin(Fc),Fc)

Last edited by bobbym (2009-11-25 22:44:35)


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#91 2009-11-26 03:27:17

SuperLynx
Member
Registered: 2009-06-28
Posts: 335

Re: Expression Formula

Nope that didn't work, here is the error begins.

>.5 ,Sin(Fc),Fc)

I've read if you, know some pre-calculus it helps in understanding these types of expressions smile If you know pre-calc Bobbym pull that info out of your memory bank smile

Last edited by SuperLynx (2009-11-26 04:03:06)

Offline

#92 2009-11-26 12:08:09

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Expression Formula

Hi SuperLynx;

How does the Rnd() command work on that program. I need more info about it and can't find it.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#93 2009-11-27 00:32:59

SuperLynx
Member
Registered: 2009-06-28
Posts: 335

Re: Expression Formula

I did make some progress to create a sin curve with noise:

Sin(Fc*5*rand_0_1(23))

Condition work like this:

cond(<name of object you want to apply condition> >= (greater then or equal too)3,<condition if true>,<condition if false>)

Put into a expression would be like this:

cond(sphere.kine.local.posy >= 3, cube.kine.local.posx, cube_two.kine.local.posz)

Explained what the expression means in English, if the condition of the sphere is great then or equal to 3 units on the X then then snap it to the cube X position if it's not greater then or 3 units on the X then snap it to cube_two Z position smile 

There is no Rnd() command in this programs expressions even in Maya there isn't, as far as I know ! There is ceiling and min and max which I still can't figure out, I've got some information on it but still can't understand.

Here is another way to write an expression:

Sin(Fc*5)+(rand_0_1(12))/64 > Tip computers are best at calculating even numbers not odd numbers (2,4,6,8,10 etc) smile

There are still some expressions syntax I can't figure out what they mean sad Then this program also has another graphical programming language which is a little easier, but you have to know what does what like "SettingData" and "GettingData"

Offline

#94 2009-11-27 01:00:53

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Expression Formula

Hi SuperLynx;

Let's not get ahead of ourselves, I am still working on a 2D graph like you provided earlier (Post #35). Once I get that, we can try to move ahead.

What does this (rand_0_1(12)) return in your language? This must be the random command. Please give me the syntax.

And by the way, in Post #35 you see that there is an Rnd() command.

Last edited by bobbym (2009-11-27 02:07:57)


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#95 2009-11-27 05:22:09

Sarah Rebekah 13
Guest

Re: Expression Formula

I Went Fishing Yesterday.

#96 2009-11-27 11:32:38

SuperLynx
Member
Registered: 2009-06-28
Posts: 335

Re: Expression Formula

What does this (rand_0_1(12)) return in your language? This must be the random command. Please give me the syntax.

It's a random jitter function. I must have meant the Random syntax I just mentioned.

Offline

#97 2009-11-27 13:49:44

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Expression Formula

Hi SuperLynx;

OK, which one returns a random number, This  (rand_0_1(12)) or Rnd()?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#98 2009-11-28 00:03:13

SuperLynx
Member
Registered: 2009-06-28
Posts: 335

Re: Expression Formula

(rand_0_1(12)) That syntax returns a random number.

Offline

#99 2009-11-28 00:11:52

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Expression Formula

Hi SuperLynx;

Between 0 and 1?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#100 2009-11-28 11:24:53

SuperLynx
Member
Registered: 2009-06-28
Posts: 335

Re: Expression Formula

It produces a Random between 0_1 with a seed of it could be (23) for example.

There is also a boolean one, which I never knew until 2 months ago what a boolean was sad smile

Offline

Board footer

Powered by FluxBB