Math Is Fun Forum

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

You are not logged in.

#26 2009-11-04 10:31:29

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

Re: Expression Formula

Hi, bobbym I understand what you mean in terms of learning.  Do you have any strong recommendations on a programming books that could help learning to understand how to write these expressions ? I have read the help documentation but I've had a hard time in how to write out the expression, so that it works.

Offline

#27 2009-11-04 21:49:28

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

Re: Expression Formula

Hi Superlynx;

Unfortunately I am not a big fan of modern programming books. Everyone usually starts with BASIC ( Beginners All Purpose Symbolic Instruction Code ). But QBasic and Liberty Basic are a mess in my opinion. I learnt C++ from those 2 awful books Learning C++ in 21 days and Schildts C++ . Learnt Lisp and Scheme from the documentation that comes with the programs. Borland Delphi, Visual Basic and Java, total garbage. Forth is not for a beginner or anyone else for that matter.

You see I learnt from an old book about Basic when it actually was basic. The book is gone now as is that dialect. With it I learnt in less than 2 hours and quickly graduated to assembly language. It was a great book that actually sought to teach the subject. All other books I have seen are some author showing off why he made the C++ committee. If I were learning today I wouldn't get there. I am so sorry that I cannot be of more help in this area.

Python is the so called wave of the future. It is free and has tons of books available online. But it is not easy.

Last edited by bobbym (2009-11-04 21:55: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

#28 2009-11-05 01:49:21

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

Re: Expression Formula

There is no book that would help me learn so I could understanding easier writing expressions ?

Offline

#29 2009-11-05 05:01:33

Sarah12
Guest

Re: Expression Formula

Expressions Can Be hard.

#30 2009-11-05 06:08:24

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

Re: Expression Formula

You are right smile I've been asking Bobby if he knows of any books that could help a beginner so I could grasp the basics or a little more advanced then basics then take it from there smile

Offline

#31 2009-11-05 08:11:53

Sarah12
Guest

Re: Expression Formula

Ask A book store.Abount A book on Expression.

#32 2009-11-05 10:42:12

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

Re: Expression Formula

Hi SuperLynx;

I didn't say there isn't just that I don't know of one. Why not start at the beginning of the help and post each example where you are having problems? I don't even know the name of the program, let alone what the problem is.


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

#33 2009-11-05 13:20:28

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

Re: Expression Formula

I posted, the problem that I was having earlier in the thread.  I also posted most of the code that the program uses for expressions, that is all there is to mention. 

I had asked only in a different way, how can I create a SIN wave and put flat lines within that wave with a little noise ?

I know what a SIN curve is etc.  For example with Noise you have (3) numeric values you can put in with MIN & MAX you have (2) and it always uses the lowest. 

How would you write out this script ?

You mentioned to me in a round about way that I have to know the syntax which I know what the commands do, but how do you  write it out so it works ?

Now you mentioned to me to be specific and post the example, but I did post the example and most of the expression commands in post #21 and in #22.

My Question is:

How can I create a SIN wave and put flat lines within that wave with a little noise ?

Offline

#34 2009-11-05 16:14:27

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

Re: Expression Formula

HI SuperLynx;

How can I create a SIN wave and put flat lines within that wave with a little noise ?

Maybe, but I would need to see a drawing of exactly what you want.

Now you mentioned to me to be specific and post the example, but I did post the example and most of the expression commands in post #21 and in #22.

No,no,no... You showed me four or five commands. You showed me no looping constructs. You showed no commands for conditional statements. You showed no graphic or IO commands, no relational operators.  That can't be most of the commands. With that list of commands almost no task is possible. The insipid Hello World program is not possible with what you showed. In short, I need Mo commands... and Larry and Curly too.

Last edited by bobbym (2009-11-05 16:15:29)


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

#35 2009-11-05 17:21:27

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

Re: Expression Formula

==  Equal to

> Greater than

>= Greater than or equal to

< Less than

<= Less than or equal to

!= Not equal to

&& AND

|| OR

Random 0 or 1

+ Add
– Subtract
* Multiply
/ Divide
% Modulo (remainder)

Abs()
Absolute value

Cos()
Cosine

Fix(), Int()
Integer portion of a number

Log()
Natural logarithm

Rnd()
Random number

Sgn()
The sign of a number: –1, 0, or 1

Sin()
Sine

Sqr()
Square root

Tan()
Tangent

Fc = Current Frame
Fc = Start Frame
T = Time

There again posted is most of the expression terms. There isn't really any more expressions terms left that are frequently used.
I had given them to you in post #22 but I listed them again.  This is the image to show what I'm trying to achieve sincurve.jpg

Offline

#36 2009-11-07 08:40:48

Sarah12
Guest

Re: Expression Formula

Superlynx Did you call A book store and see did they have A book on Expresion?

#37 2009-11-07 11:09:49

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

Re: Expression Formula

Hi SuperLynx;

One last question, does it support an If then else statement.


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

#38 2009-11-07 13:39:59

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

Re: Expression Formula

Conditions, it does support.  Using Cond()

Sarah - Yes I did, nothing.

Offline

#39 2009-11-07 18:04:43

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

Re: Expression Formula

Hi SuperLynx;

And what may I Ask is the syntax of the Cond() statement. Please provide me with some examples too.


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

#40 2009-11-08 02:37:09

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

Re: Expression Formula

cond( <cond> , <true_expr> , <false_expr> )

I hope this helps, let me know if it doesn't smile

Offline

#41 2009-11-08 08:21:22

Sarah12
Guest

Re: Expression Formula

Im sorry to hear that they didth have A Book on Expresion.

#42 2009-11-08 14:12:53

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

Re: Expression Formula

Don't worry about it Sarah smile It just seems harder and harder to get half decent help.  It is wonderful that Bobbym is trying to help and with your compassion has been well appreciated smile

Offline

#43 2009-11-09 06:30:47

sarah12
Guest

Re: Expression Formula

You are welcome.I Hope you get the answer.

#44 2009-11-09 09:07:43

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

Re: Expression Formula

Hi SuperLynx;

Sorry for the delay but personal problems have been taking all my time.

Try this:

Cond(x>0, x, x^2) and tell me what you get. This is just an attempt at long range debugging. It is not the answer your require but
since I know nothing of the program you are working with not even the name...

Last edited by bobbym (2009-11-09 09:09:31)


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

#45 2009-11-10 02:17:57

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

Re: Expression Formula

I have to give it a target.  The name of the program is Softimage, I hope that helps in getting this solved smile

Offline

#46 2009-11-10 10:25:43

sarah12
Guest

Re: Expression Formula

Did you get the Answer?

#47 2009-11-10 12:42:38

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

Re: Expression Formula

No smile Hopefully Bobbym comes up with answer soon smile

Offline

#48 2009-11-11 02:48:01

Sarah12
Guest

Re: Expression Formula

Sometime its take time but you will get it.

#49 2009-11-11 11:27:15

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

Re: Expression Formula

I know, I can wait smile In the meantime while I suppose we wait for Bobbym, how are you ?

Offline

#50 2009-11-12 09:22:25

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

Re: Expression Formula

Hi SuperLynx;

Not that good, but I am functioning. Lost my mother yesterday. Sorry, but I just shut down.

I don't understand what you mean by a target in this case.

Last edited by bobbym (2009-11-12 09:46:31)


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

Board footer

Powered by FluxBB