Jump to content



Photo
- - - - -

Creating A Simple Program - Print Results


  • Please log in to reply
3 replies to this topic

#1 PsySc0rpi0n

PsySc0rpi0n

    Newbie

  • Members
  • Pip
  • 26 posts

  • Calculators:
    Casio FX-CP400

Posted 03 April 2014 - 11:39 AM

Hi...

I'm trying to make a small program to perform a few calculations but I'm struggling when I want to show the results...

I'm using the Var tab in soft keyboard to save my results in those variables like a, b, c, d, e and so on!

Then I'm also using the built-in funtion solve() to make some calculations.

Then I want t window to pop-up to show the results of solve function but I can't make it work.

The code is:

...
solve(b=ma + e, e)=>f
Print approx(f)
Pause
solve(0=mx+e, x)=>g
Print approx(g)
Pause
ClrText

The output shows the first value, "f", correctly but the second shows a number multiplied by "e"!

Any help?

Edited by PsySc0rpi0n, 03 April 2014 - 11:51 AM.


#2 MicroPro

MicroPro

    Casio Overlord

  • Deputy
  • PipPipPipPipPipPipPip
  • 640 posts
  • Gender:Male
  • Location:Iran

  • Calculators:
    Casio ClassPad 300

Posted 06 April 2014 - 08:39 AM

Hi. Are you sure variable e exists at the second point? Can you print it?

For showing the result of calculations in a popup window (that also supports showing 2D math) you can use the PrintNatural function instead of the normal Print.

#3 PsySc0rpi0n

PsySc0rpi0n

    Newbie

  • Members
  • Pip
  • 26 posts

  • Calculators:
    Casio FX-CP400

Posted 21 June 2014 - 04:52 PM

Hi. Are you sure variable e exists at the second point? Can you print it?

For showing the result of calculations in a popup window (that also supports showing 2D math) you can use the PrintNatural function instead of the normal Print.



I'll back to that matter later. I'm at exams season.

However I'm struggling with user-defined functions. I can't make them work.

I'm defining the function "dcurrent" and inside it I have the following:
x.(e^(y/(z/11600))-1)

When I try to call it in Main like:
dcurrent(0.000000002,5,20)

it says:
"Incorrect number of arguments"

Anyone help?

#4 PsySc0rpi0n

PsySc0rpi0n

    Newbie

  • Members
  • Pip
  • 26 posts

  • Calculators:
    Casio FX-CP400

Posted 22 June 2014 - 10:56 AM

I got it...

Maybe a wrong parenthesis!

Now, that expression can get huge values very fast because of the exponential function.

How can I avoid "OverFlow" error?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users