else if ((sqrt((dx2*dx2)+(dy2*dy2))>=b),(sqrt((dx3*dx3)=(dy3*dy3))>=c),(sqrt((dx1*dx1)+(dy1*dy1))<=a))
I should point out, though, that == doesn't work very well with floating point either. It will be extremely picky. Is 3.000001 equal to 3.000002? No. Only 3.0000001000 will be exactly the same as 3.0000001000. There's also the problem that the same number can appear in several different ways in floating point.
So don't check if floats are equal. Check if they're "close enough" by subtracting them, taking the absolute value, and seeing if the result is less than the maximum distance apart you want:
Hi All,
Please help me to perform sum of values in a loop, I am getting following error:
"total=0++432907765772: ++ requires lvalue"
where actual statement is as : total=$total+$amt
where amt can have +ve or -ve values
Thanks
Sandeepb (3 Replies)
I'm running sendmail (8.13.8+Sun/8.13.8/Submit) solaris 10.
When I send mail to root at the command line (whether I use a full-qualified address or just root), I get the error message
root... User address required.
Sending mail to root (either at the command line or in a cron job),... (10 Replies)
Hi,
I am trying to compile a program (not coded by me), and i'm getting this error:
203: error: lvalue required as left operand of assignment
As you may be guessing, the program doesn't compile, the line number 203 is the following:
... (2 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
im kinda new to shell scripting so i need some help
i try to run this script and get the error code
> 5 ")syntax error: operand expected (error token is "
the code for the script is
#!/bin/sh
#
# script to see if the given value is correct
#
# Define errors
ER_AF=86 # Var is... (4 Replies)
I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this:
$ look "string" "/home/patrick/filename.txt"
However, this gives me the following message:
"look: /home/patrick/filename.txt: File too large"
So, I have two... (14 Replies)
z < 0 ? z= z + 2*r*cos(theta) : z= z - 2*r*cos(theta);
Does anyone know what is wrong here?
I've got compiler msg:
lvalue required as left operand of assignment
All variables are "double". I'm using gcc compiler (but I don't think that matters) (5 Replies)
Hey all. I've been working on some fun with C and decided to write a Rock Paper Scissors game. The problem is, that when I try to compile the file, it gives "lvalue required as left operand of assignment" error. The error line is here:
for ((point1=0 && point2=0); ((point1=3) || (point2=3));... (4 Replies)
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT DEBIAN
genlib_def_ab
GENLIB_DEF_AB.3(October 1, 1997) GENLIB_DEF_AB.3(October 1, 1997)
NAME
GENLIB_DEF_AB - define a new abutment box to the current layout cell
SYNOPSYS
#include <genlib.h>
void GENLIB_DEF_AB(dx1, dy1, dx2, dy2);
long dx1, dy1, dx2, dy2;
ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in
Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr
PARAMETERS
dx1, dy1 Values to be added to the lower left corner of the previous abutment box
dx2, dy2 Values to be added to the upper right corner of the previous abutment box
DESCRIPTION
DEF_AB give a new abutment box to the current physical cell. The coordinates of the abutment box are the coordinates of the envelop of the
abutment boxes of each instance plus the delta values given as argument. The (dx1, dy1) values are added to the (x1, y1) coordinates of the
bottom left corner of the "standard abutment box" (the envelop), and the (dx2, dy2) are added to the top right ones. You have to call this
function before saving, otherwise the figure will not have an abutment box. Since it's regarding the abutment box of its model that an
instance is placed, any futher use of this figure will be incorrect if DEF_AB isn't called, or properly defined.
ERRORS
"GENLIB_DEF_AB impossible : missing GENLIB_DEF_PHFIG"
No figure has been yet specified by a call to DEF_PHFIG. So it isn't possible to give it a size. you must call DEF_PHFIG before any
other layout action.
EXAMPLE
#include <genlib.h>
main()
{
/* Create a figure to work on */
GENLIB_DEF_PHFIG("cell");
/* Place an instance */
GENLIB_PLACE("model","i1", NOSYM,0L,0L);
GENLIB_PLACE("model","i2", NOSYM,120L,40L);
GENLIB_DEF_PHINS("i1");
GENLIB_PLACE_TOP("model2", "i3", NOSYM);
/* define the new abutment box as the standard envelop */
GENLIB_DEF_AB(0, 0, 0, 0);
/* Save all that on disk */
GENLIB_SAVE_PHFIG();
}
SEE ALSO genlib(1), GENLIB_SAVE_PHFIG(3).
BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
PROCEDURAL GENERATION LANGUAGE ASIM/LIP6 GENLIB_DEF_AB.3(October 1, 1997)