# Circular Reference Error

7 replies to this topic

### #1 Alvise

Alvise

Newbie

• Members
• 8 posts

• Calculators:

Posted 29 November 2005 - 01:44 PM

Hello,

If i define a Pr function

Define Pr(x,y)=x*y/(x+y)

and i try to do

Pr( Pr(1,1),1) classpad returns me "Circular Reference" error. Why ?

Thanks.

Alvise

### #2 Kilburn

Kilburn

Casio Technician

• Members
• 491 posts
• Gender:Male
• Location:France
• Interests:Blah

• Calculators:
FX-7500 G

Posted 30 November 2005 - 07:46 PM

This error occurs when you try something like this:
`x+1=>x`
when the variable x does not exist...

Can this help?

### #3 Alvise

Alvise

Newbie

• Members
• 8 posts

• Calculators:

Posted 01 December 2005 - 03:27 AM

my function is a "normal" numeric function .... like sin()
but the calc returns a numer if i do : approx(sin(sin(2)))

### #4 R00KIE

R00KIE

Casio Freak

• Members
• 155 posts
• Location:Portugal
• Interests:Electronics, games, programming

• Calculators:
HP49G ROM 1.24; CASIO CFX-9850GB PLUS;CASIO FX-6300G; CASIO FX-82TL

Posted 02 December 2005 - 11:08 AM

Big nasty bug

### #5 MicroPro

MicroPro

Casio Overlord

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

• Calculators:

Posted 19 December 2005 - 12:41 PM

Hello,
If i define a Pr function
Define Pr(x,y)=x*y/(x+y)
and I try to do
Pr( Pr(1,1),1) classpad returns me "Circular Reference" error. Why ?
Thanks.
Alvise

"Circular Reference" means that you have refered to a function into the own function. For example Pr(Pr()).
I think that if you create another function and use it to refer to the Pr function, it must solve the problem. I mean:

```<The Pr Function>
Define Pr(x,y)=x*y/(x+y)

<The second function, "Pr2">
Define Pr2(x,y)=x*y/(x+y)

<And this is how you call your functions inside each other>
Pr( Pr2(1,1),1)```

I hope this solves your problem. Tell me the result, if you liked (CPMicroPro<At>yahoo.com).

### #6 Orwell

Orwell

Casio Overlord

• Members
• 777 posts
• Gender:Male
• Location:Paris - France

• Calculators:
Casio AFX 1.02 / Casio ClassPad 300

Posted 19 December 2005 - 12:50 PM

Tell me the result, if you liked (CPMicroPro AT yahoo.com).

I've seen this several times, but I will just post it once:
This is a forum here, so the results should be given together with the question and the answers, not only on individual emails. Perhaps there will be some other persons who will have the same questions and who will be glad to see here if the solutions you proposed were good or not

### #7 MicroPro

MicroPro

Casio Overlord

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

• Calculators:

Posted 22 December 2005 - 12:38 PM

I've seen this several times, but I will just post it once:
This is a forum here, so the results should be given together with the question and the answers, not only on individual emails. Perhaps there will be some other persons who will have the same questions and who will be glad to see here if the solutions you proposed were good or not

Sorry, Yes, Of course, but sometimes I become too busy and I can not visit all of the places I am registered in. And, my post about Pr and Pr2 is here and everybody can test it for him/herselft... Anyway.

### #8 2072

2072

Casio over god

• 1565 posts
• Gender:Male
• Location:Somewherebourg
• Interests:Alternative states of consciousness, programming, making things work the best they possibly can.

• Calculators:
AFX2 ROM 1.02, CFX-9940GT+, FX-180P-Plus

Posted 22 December 2005 - 01:06 PM

Note that there is an option in the forum that sends you an email when you receive a reply on the topics of your choice

It's in the "Option" on the top right corner of each topic.

#### 0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users