11-25-2011
@rpf:
Looks more like a math problem. Try searching for an algorithm to solve that problem, programming the same wouldn't be much of a headache.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Does anyone know an equiv of lscfg -vp for HP-UX? (2 Replies)
Discussion started by: sam_pointer
2 Replies
2. Programming
I have configured my firewall to allow only five remote IP's to connect to my server. Upon connection...i would like to automate the Xsession functions for authorized IP's.
Mainly, $DISPLAY of the environment to the client.
I understand that the "gethostbyaddr" function is capable of this.... (0 Replies)
Discussion started by: thomas.jones
0 Replies
3. UNIX and Linux Applications
I have a simple gnuplot question. I have a set of points (list of x,y,z values; irregularly spaced, i.e. no grid) that I want to plot. I want the plot to look like this:
- points in map view (no 3D view)
- color of each point should depend on its z-value.
- I want to define my own color scale
-... (0 Replies)
Discussion started by: karman
0 Replies
4. UNIX for Dummies Questions & Answers
FILE_DATE=`date +%Y%m%d`
current mth code is 200808
How can i find the 56 mths back mth code. (1 Reply)
Discussion started by: dr46014
1 Replies
5. Red Hat
Hi experts,
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda9 3.8G 1.7G 2.0G 46% /
none 369M 0 369M 0% /dev/shm
/dev/hda10 2.0G 33M 1.8G 2% /tmp
/dev/hda12 1.4G 1.2G 260M 82% /usr
I used df -h... (3 Replies)
Discussion started by: William1482
3 Replies
6. Shell Programming and Scripting
Hi guys. Can anyone tell me how to determine points between two coardinates. For example: Which type of command line gives me
50 points between (8, -5, 7) and (2, 6, 9) points
Thanks (5 Replies)
Discussion started by: rpf
5 Replies
7. Shell Programming and Scripting
Hi All,
I'm a newbie here, I'm having problem getting the value inside the tag of input file.
ex.
script
$ curl -H ...
response from script
<tag1>response1</tag1><tag2>response2</tag2><tag3>response3</tag3>
How to get the response from enclosed tag? is this possible?
sample output: ... (10 Replies)
Discussion started by: nikki1200
10 Replies
8. Shell Programming and Scripting
Hi,
Do anybody experience using awk or perl command to identify gradient of a straight line and The coefficient of determination/R-square value of a chart (R2) ?
Below is my input file :
t1 2 3 5 8
t2 0 2 0 2
t3 1 1 1 1
t4 50 70 80 90
.
.
.
Desired Output :
t1 2 3 5 8 0.6986... (10 Replies)
Discussion started by: perl_beginner
10 Replies
9. Shell Programming and Scripting
Hello,
I've been trying to create a list of numbers in bash that loops every 10s as follow. So the list will contain 1-5 on start, then 2-6 after 10s and so on. However when it reaches 30 it needs to start back at 1.
1 2 3 27 28
2 3 4 28 29
3... (2 Replies)
Discussion started by: shadyuk
2 Replies
LEARN ABOUT DEBIAN
calc_spline
calc_spline(3alleg4) Allegro manual calc_spline(3alleg4)
NAME
calc_spline - Calculates a series of values along a Bezier spline. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
void calc_spline(const int points[8], int npts, int *x, int *y);
DESCRIPTION
Calculates a series of npts values along a Bezier spline, storing them in the output x and y arrays. The Bezier curve is specified by the
four x/y control points in the points array: points[0] and points[1] contain the coordinates of the first control point, points[2] and
points[3] are the second point, etc. Control points 0 and 3 are the ends of the spline, and points 1 and 2 are guides. The curve probably
won't pass through points 1 and 2, but they affect the shape of the curve between points 0 and 3 (the lines p0-p1 and p2-p3 are tangents to
the spline). The easiest way to think of it is that the curve starts at p0, heading in the direction of p1, but curves round so that it
arrives at p3 from the direction of p2. In addition to their role as graphics primitives, spline curves can be useful for constructing
smooth paths around a series of control points, as in exspline.c.
SEE ALSO
spline(3alleg4), exspline(3alleg4)
Allegro version 4.4.2 calc_spline(3alleg4)