Login| Sign up

Opera Software ASA

Widgets » Science » Scientific Calculator

  • 45 downloads last 7 days
  • 32,891 total downloads
  • Rating: +8 (login to vote)
Scientific Calculator, Opera application V1.1 Jul 14, 2006 3:44:42 PM

Do all the functions of a scientific calculator. Some parts of the script from http://javascript.internet.com.


Comments 11 posts

Log in at the top of the page to post a comment.

1 - 11 of 11

A Percent Key needs to be added

By starrman , # Jul 7, 2008 1:39:22 PM

Scientific Calulator by Anshugiri needs to be upgraded for OPERA 9.51
In addition a Percent Key needs to be added. The ^ Key does not function
and could be deleted.

By starrman , # Jul 7, 2008 1:38:54 PM

cos(90) isn't equal to 0, but to 6.12e-17 by your calc.
degrees ofcourse...

By Exelle , # Feb 29, 2008 10:59:33 AM

How about a 10-key function calculator with an on-screen tape??

By calvin trager , # Jul 6, 2007 4:54:53 PM

Actually this is extremely handy for windows users, seeing as how the windows calculator won't crunch radicals. It looks nice, its intuitive, and i like it. Job well done!!!!

By Fonzie2k , # May 6, 2007 8:30:10 PM

gr8 job done............

can you make a widget by which mouseover event would genrate the ip address, location and the coordinates of the hyperlink..........

this is actually present in firefox as an add-on.

code for ur help:-

function hostipfox_enable() {
}

function hostipfox_disable() {
}

function hostipfox_init() {
if('__hostipfox__FillInHTMLTooltip' in window) return;
const prefs = Components.classes['.org/preferences-service;1'].getService(Components.interfaces.nsIPrefService).getBranch(null);

var originalFillInHTMLTooltip = window.FillInHTMLTooltip;
window.__hostipfox__FillInHTMLTooltip = originalFillInHTMLTooltip;

const dnsService = Components.classes['.org/network/dns-service;1'].getService(Components.interfaces.nsIDNSService)

const nsISupportsString = ('nsISupportsWString' in Components.interfaces) ? Components.interfaces.nsISupportsWString : Components.interfaces.nsISupportsString;

window.FillInHTMLTooltip = function(elem)
{
var retval = false;

if (!elem ||
elem.namespaceURI == 'http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul')
return false;

try {
if (elem) {
while (elem && (elem.nodeType != Node.ELEMENT_NODE || !elem.attributes.length))
elem = elem.parentNode;

if (!elem) return false;

var attrlist = null;
try {
attrlist = prefs.getBoolPref('browser.chrome.tooltips.use_attrlist') ? prefs.getComplexValue('browser.chrome.tooltips.attrlist', nsISupportsString).data : null ;
}
catch(ex) {
}

if (attrlist) {
attrlist = attrlist.split('|');
for (var i in attrlist) {
if (attrlist && elem.getAttribute(attrlist))
alttooltiptext.push('['+attrlist+']: '+elem.getAttribute(attrlist));
}
}
else if (
!elem.ownerDocument.contentType.match(/^text/html//) &&
( ('href' in elem && elem.href) || ('src' in elem && elem.src) )
)
{
// We have a valid link (with href in it)
var url = elem.href;

// ... or we have a src tag (img)
if(!url)
{
url = elem.src;
}

if(url)
{
if(url.length > 40)
{
url = url.substring(0, 37) + '...';
}

if(url.substring(0, 4) == 'http')
{
var original = elem.label ? elem.label : elem.alt;
var hostname = elem.hostname ? elem.hostname : Components.classes[".org/network/io-service;1"].getService(Components.interfaces.nsIIOService).newURI(url, null, null).host;
var ipaddr = dnsService.resolve(hostname, false).getNextAddrAsString();

var tooltip = new hostipfox_Tooltip(original, url, hostname, ipaddr, 'loading...');
retval = tooltip.update();
tooltip.getLocation(ipaddr);
}
}
}
}
}
catch(e) {
}

if(!retval) return originalFillInHTMLTooltip(elem);
else return true;
};
}

reach me at yahoo, with

bap_g.com


take care

By mail2rajeev , # Feb 23, 2007 9:07:40 PM

Yeah... This was a good widget until I realized you couldn't use the number pad... BOOOOOO!

By baylorseth , # Aug 17, 2006 7:44:21 AM

It should be possible to use the keyboard (and number pad)!
The display should be higher to allow display of previously entered numbers and operators.

By ikaros , # Aug 17, 2006 12:27:58 AM

Its close to usefull, windows oen calculator is quite anoying, id like to be able to use the num keyboard, don't knwo is thats a posibility

By RyomaNagare , # Jul 18, 2006 2:28:52 PM

I'm afraid "all the functions" is a bit of an exaggeration. No 10log, no hyperbolic sin, cos and tan, no inverse goniometry, no factorial... A usability handicap is that you have to click the digits with your mouse, rather than typing them with the numeric keypad.

By garmt , # Jul 14, 2006 7:01:44 PM

Works well enough, but the usefulness, considering Windows' own calculator (I don't know if Mac and Linux have their own built-in ones, though), is questionable.

By Strife767 , # Jul 14, 2006 6:54:46 PM