Re: Requesting help again... as a beginner....

new topic     » goto parent     » topic index » view thread      » older message » newer message
DanM said...

power is a function, not a procedure, your code there needs to be:
h = power(t,2)

I'm not sure if it's adequate to have "h" be an integer, though, because you could be raising decimal fractions to a power, and the result of that won't be integer type. So maybe you need "h" to be atom, I'm not sure.

Dan

Also, i'm doing this in .exw but I think I mentioned that before.

Okay, changed, but it keeps saying true/false condition must be an ATOM. I have changed h and e to atoms though. in the ex.err it says

6 true/false condition must be an ATOM

C:\EUPHORIA\include\get.e: input_file = <no value> input_string = <no value> string_next = <no value> ch = <no value>

t = {1,10000} h = <no value> e = <no value>

I tried adding an atom k = 10000 and using that to make t = {1,k}, and changing t to k, for the prompt number. something like k = prompt_number("\nsomething",t), but that didn't work either, its became basically the same ex.err file, but it would be 7 true/fals condition must be an ATOM, and added k = 10000.

Can anyone help?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu