Set a cell from within a function

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I am writing a function to calculate the area of a triangle given the lengths
of the sides. If the inputs are invalid (one side too big), I want the
function to set CELL(3,3) to one. Setting CELL(3,3)=1 in the function
doesn’t work. How can I accomplish this?
--
Gary's Student
.



Relevant Pages

  • Re: geometric proofs of incommensurable lengths
    ... If the two lengths had a common unit of measure, ... Suppose an isosceles right triangle has sides ... of length d and a hypothenuse of length h. ...
    (sci.math)
  • Re: Where to put the error handing test?
    ... since you're writing it all. ... This is clearly a redundancy to the code. ... you'll be a long time finding all the bugs in non-trivial code. ... and write careful documentation describing what's invalid. ...
    (comp.lang.python)
  • Re: Where to put the error handing test?
    ... Or you could be referring to a test that notices bad input by a user, or bad data from an untrusted source. ... And there are variations of these, depending on whether your user is also writing code, etc. ... If you throw the code together without a test suite, you'll be a long time finding all the bugs in non-trivial code. ... If you're writing a library to be used by others, then define your public interfaces with exceptions for any invalid code, and write careful documentation describing what's invalid. ...
    (comp.lang.python)
  • Re: Putnam Exam 2004 -- [*SPOILERS*]
    ... > expansion are non negative. ... the area and side lengths of a triangle satisfy ... >> Taylor series shows that the limit must equal this infinite sum. ...
    (sci.math)
  • Re: help plz
    ... snooker table. ... user will input the depth of triangle e.g 5 so the program should ... can anyone plz help me in writing this program? ... Gauss, when he was ten years old. ...
    (comp.soft-sys.matlab)