SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on how to get your MSP JTAG programmer up and running.
By composer
#138628
When I try to compile the folowing code(part of code is given) I get the error 'expression must have integral type'.Does anyone have the idea why is this happening?

float u;
float e;
float e0;
float ep;
float u1;
float f1;
float f2;
float Kp;
float b;
float Td;

f2 = f2 + (abs((e + ep)*(1/2)))^(2/3);
u = u1 + b*(Kp*(e-e0) + f2*f1*3*Kp*(e0)^(1/3)/Td);
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]