×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

what is wrong below??

what is wrong below??

what is wrong below??

(OP)
Error: Incompatible type conversion

Z=((sqrt(Alfa23_linha)*Tetaliq*Rms*exp(-Alfa23_linha*Fi3*Fi3))/(ERF(sqrt(Alfa23_linha)*Fi3)-ERF(sqrt(Alfa23_linha)*Fi2))+(sqrt(Beta23)*Rls*Tetai*exp(-Beta23*Fi3*Fi3))/(ERFC(sqrt(Beta23)*Fi3))-(sqrt(3.14)*Fi3*Fliq)/(St));

OBS: everything is double


Error: Function Call missing )

W=((Tetae*exp(-Fi2*Fi2)/ERF(Fi2))-(sqrt(Alfa23_linha)*Rms*Tetaliq*exp(-Alfa23_linha*Fi2*Fi2)/(ERF(sqrt(Alfa23_linha)*Fi3)-ERF(sqrt(Alfa23_linha)Fi2)))-(sqrt(pi)*Fi2*(1-Fseq)/St));

I already tried switching all ways of parenthesis, does anybody see whats wrong?

RE: what is wrong below??

Try breaking down the formula into smaller steps; This will give a clearer picture of where the problem lies.  It is extremely difficult to see where the problem lies with operations this long.  I would be willing to bet though, that you left out a multiplication operator (as it would be written on paper), so the compiler thinks you are trying to typecast to an undeclared type.

//What we want
A = B*(C+D)

// What we typed
A = B(C+D)
// this is actually an attempt to typecast the result of C+D to type B, which does not exist

On the 2d, just make sure you match opening parentheses with closing Parentheses.  I usually move the cursor through the line of code and count the each opening Parentheses, and decrementing my count for each closing parentheses.  Doing this, you should be back to zero when you reache the last Closing ")".

RE: what is wrong below??

Exactly.
Missed * in ...ERF(sqrt(Alfa23_linha)Fi2)...
Probably the parser terminates ERF call on Fi2 and reports missed call error (no closing parenthesis).
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close