LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-16-2008, 08:58 AM   #1
Slick666
Member
 
Registered: Feb 2006
Distribution: Ubuntu 8.04; Debian Etch
Posts: 167

Rep: Reputation: 33
gcalctool Functions


What I'm trying to do appears to be pretty straight forward. I use gcalctool all the time and I want to use the user defined functions to define some of my own constants and functions of simple calculations that I do over and over but for the life of me I can't seem to figure it out.

With every entry I get I get the error "Malformed Function". I've looked up the man page, the homepage of the project, and googled the error but no where can I find en example or a definition on how to form the functions. Can someone enlighten me on this please?
 
Old 09-16-2008, 09:40 AM   #2
harry2006
Member
 
Registered: Aug 2006
Location: /hawaii/honolulu/downtown
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201

Rep: Reputation: 30
have a look over here
http://forums.fedoraforum.org/showthread.php?t=119376
hope it'll give u some useful information....
ll get back with some more useful links/solutins....
 
Old 09-16-2008, 10:09 AM   #3
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
From the gcalctool help screen:

Quote:
The gcalctool application does not provide any default functions. You can store up to ten functions.

To store a new function or edit an existing function, perform the following steps:

1. Click Fun, then select Edit Functions from the popup menu.

2. In the Edit Functions dialog, select a blank entry, or the function that you want to overwrite.

3. Click on the Value field, then enter the new value. Use the keyboard shortcuts to invoke a gcalctool button. For example, enter 90K to calculate sine(90).

4. Click on the Description field, then enter the new description. For example, Sine 90.

5. Click OK to save your changes and close the Edit Functions dialog.
 
Old 05-08-2009, 12:49 AM   #4
ARSchmitz
LQ Newbie
 
Registered: May 2009
Location: Madison, WI
Distribution: Xubuntu
Posts: 2

Rep: Reputation: 0
I've been trying to do the same thing myself (on 5.24.1), and you're right. There's absolutely nothing out on google. So I submitted a bug via the help menu. Well, the project hasn't used that specific bug tracking system for several years. So after some heavy investigative journalism, here's the bug-tracking page for the project:

http://bugzilla.gnome.org/browse.cgi?product=gcalctool

The 2 related bugs are in the Components => docs area. They're still not fully addressed yet. However, the key is adding an "=" after the statement. "sin(45)=" works properly, as does "sin(R0)=". R0 of course being a stored value.

It's a heck of a thread bump; but it was important to me, and it answers the question properly.
 
  


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
LXer: OpenOffice.org Calc functions, part 1: Understanding functions LXer Syndicated Linux News 0 03-31-2007 01:01 PM
Slackpkg: missing something in /usr/libexec/slackpkg/functions.d/dialog-functions.sh michelino Slackware 4 03-20-2007 01:22 PM
help on c functions tooparam Programming 5 12-20-2005 05:54 AM
Converting php5 socket functions to php3 socket functions mrobertson Programming 0 06-23-2005 10:11 AM
pointers to functions/member functions champ Programming 2 03-28-2003 07:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:26 PM.

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