News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

What about exponent x^4?

Started by casaucao, October 28, 2008, 07:16:42 PM

Previous topic - Next topic

casaucao

Hi, first off, I'm really newbie using C::B ON LINUX (ubuntu)

I have a problem when I wanna type something like this: x^4

The result (on screen) is (what I see on my screen): x

But when I type x^3 (also x^2, x^1) I have no problem. In the code text area I see "x^3" (what I type)

Anybody knows where is the problem?

I think the problem is concerning to Ubuntu,...

Best regards

MortenMacFly

Quote from: casaucao on October 28, 2008, 07:16:42 PM
I think the problem is concerning to Ubuntu,...
Seems so... at least I cannot reproduce on Windows. Any other (Ubuntu) Linux users here?!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

casaucao

I have no problem on Windows.

No doubt, the problem is using Ubuntu. I can't type "x^4" on google. I'm going to looking for something :S

Ganbito

Well, I'm on Trisquel (Ubuntu based) and I have no problem.

The only thing I can see is that I can type x1, x2, x3 but not x4 directly on the screen introducing x^n. I don't know if you refer to this, because for seeing on the screen x^1, x^2, x^3, x^4, x^n, I have no problem.

casaucao

Exactly! I can't see x4 introducing x^n. I see only x1, x2 and x3.

Furthemore, when I type x^2, for example, (consencuently, I see x2 on my screen) I get an error when I compile.

When I type x^5 (by pressing two times shift+^) I get another error: "invalid operartor logic, operator^" (something like this)

I'm not able to find the solution  :cry: :cry: :cry:

Thank you for your replies

dje


casaucao

Quote from: dje on October 29, 2008, 10:41:14 AM
pow

May be... But I'm not sure this is what I looking for :S Thank you anyway

dje

I know you are talking about display with ^, but you focus on ^ with an exponent in your subject whereas ^ is the Bitwise Exclusive OR Operator

Dje

casaucao

Yes, I know. I will use pow function then...

Thank YOU again