LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-16-2009, 02:21 AM   #16
khodeir
Member
 
Registered: Feb 2009
Distribution: Debian
Posts: 243

Original Poster
Rep: Reputation: 33

i am sorry i faced a problem using sin
set i [expr sin(90)]
the answer is 0.89 but the answer i expect 1
am i right?
 
Old 03-16-2009, 05:20 AM   #17
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
The argument must be in radians.

http://www.tcl.tk/man/tcl8.5/TclCmd/mathfunc.htm#M30

jlinkels
 
Old 03-16-2009, 06:49 AM   #18
khodeir
Member
 
Registered: Feb 2009
Distribution: Debian
Posts: 243

Original Poster
Rep: Reputation: 33
thanks man
I have solved the problem of the calculator
1- i made a flag to check first argument or second one
2- save them till he pressed equal
really it was hard to be made but thanks Allah
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gcvs problem : TCL is *not* available alanchansl Linux - Software 2 04-18-2007 06:24 AM
Cannot find Tcl dll ( Perl's Tcl bridge ) Xyem Linux - Software 2 08-08-2006 09:45 AM
svxlink: tcl problem Moses420ca Linux - Software 2 09-11-2005 11:47 AM
tcl/tk and c problem??!! boxser72 Programming 1 07-05-2004 01:27 PM
tcl/tk and c problem??!! boxser72 Programming 1 06-26-2004 10:11 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration