Search Results

Search: Posts Made By: Tzeronone
Forum: Programming 10-29-2014
1,065
Posted By Tzeronone
Not a repeated question (Perl Script Create Football Formation)
https://www.unix.com/programming/252468-perl-script-create-football-formation.html https://www.unix.com/members/43551.html, it is not repeated question. please read it before u block my question....
Forum: Programming 10-28-2014
1,355
Posted By Tzeronone
Perl script to create football formation
I need help to create varieties of football formation. The available positions are:
GK
SW
DR
DC
DL
WBR
DM
WBL
MR
MC
ML
AMR
AMC
AML
ST
But the conditions are:
a. the maximum number in...
2,298
Posted By Tzeronone
What about perl? After I run the awk, it gives...
What about perl?
After I run the awk, it gives me error
C:\Program Files\GnuWin32\bin>awk 'FILENAME != "formation.txt" {PL[FILENAME,++CNT[FILENAME]]=$0; next} {print PL[$0,++CNT2[$0]]} ' DR.txt...
2,298
Posted By Tzeronone
For sure it is not homework assignment. From the...
For sure it is not homework assignment. From the formation.txt,
the first row: DR. Therefore, it will take the name from DR. txt which is ARBELOA 200
the second row: DC. Therefore, it will take the...
2,298
Posted By Tzeronone
Actually the next line is "Carvajal" because...
Actually the next line is "Carvajal" because "Arbeloa" is already existed in the line up. :)
2,298
Posted By Tzeronone
Football formation
I'm trying to create a perl script that will automatically fit the player's name to the formation.
For example, in my:
DR.txt
Arbeloa 200
Carvajal 190
Ramos 180
DC.txt
Ramos 200
Pepe 190...
Forum: Programming 05-14-2014
2,571
Posted By Tzeronone
Yes, i want to create a random 6 digit number...
Yes, i want to create a random 6 digit number with:
(DIGIT_1)+(DIGIT_2)+(DIGIT_3)+(DIGIT_4)+(DIGIT_5)+(DIGIT_6)=10
For example:
0-0-0-0-9-1
0-0-0-9-0-1
2-2-2-2-2-0
and so on
Forum: Programming 05-14-2014
2,571
Posted By Tzeronone
it's not an assignment... just an interest to...
it's not an assignment... just an interest to create possible number combination
Forum: Programming 05-14-2014
2,571
Posted By Tzeronone
6 digits combination
Is there any program that can create 6 digit numbers with:
(DIGIT_1)+(DIGIT_2)+(DIGIT_3)+(DIGIT_4)+(DIGIT_5)+(DIGIT_6)=10
Any perl or C also can. Anyone can help me? Thank you
2,014
Posted By Tzeronone
Dear Summer Cherry, How if i want to put...
Dear Summer Cherry,

How if i want to put formula of (cur_val - 2 * pre_val + pre_pre_val) >= 0.25 into the perl? For example, I have a number.txt consists of
1 0.1
2 0.4
3 0.9
4 0.6
5 0.5
6...
2,014
Posted By Tzeronone
Perl to send previous and current value
For example, I have a file called number.txt.
x y
1 1
2 4
3 9
4 6
5 5
6 6
7 9
8 4
9 1
10 0
...

And I want to print out the value of x and y, if y%4==0 and the next value of y%4==0....
Forum: Programming 02-07-2013
4,812
Posted By Tzeronone
Draw Bar Graph for GNUPLOT
For example, I have a file called data.txt. And the content is:
Iker_Casillas 181
Raphael_Varane 182
Sergio_Ramos 182May I know how to write a script for gnuplot, so I can have a bar graph as the...
2,654
Posted By Tzeronone
Save result to a text file
Currently I have a perl code to combine two different files.
#! /usr/bin/perl -w

use strict;

open FP1,"A.txt";
open FP2,"B.txt";
my ($l1,$l2);
while(1)
{
$l1=<FP1>; chomp $l1;
...
3,161
Posted By Tzeronone
Mean square root error from different files
For example, I have files called A.txt and B.txt.
A.txt
#x yj
1 1
2 4
3 9
4 16
5 25
6 36
7 49
8 64
9 81
10 100B.txt
#x ^yj
1 1
2 8
3 27
4 64
5 125
6 216
4,490
Posted By Tzeronone
Thank you, man. You are GENIUS...
Thank you, man. You are GENIUS...
4,490
Posted By Tzeronone
GREAT. It is working. But how to declare if x=0,...
GREAT. It is working. But how to declare if x=0, then y[x]=0. Because for y[3] and y[4], the x[1]=0, thus y[0]=0.
awk '
{ P[$1]=$2 ; m=$1>m?$1:m; x[NR]=$1 ; y[NR]=$2 }
END {
for(i=1;i<=m;i++)...
4,490
Posted By Tzeronone
It is working but shows the wrong result, thus it...
It is working but shows the wrong result, thus it remains dissolved. Any how, thanks.
4,490
Posted By Tzeronone
Polynomial interpolation is an interpolation that...
Polynomial interpolation is an interpolation that based on three value points (two previous points and next point). So, if we see the data, there are an ID 1, 4, and 8. So, we need to find out the...
4,490
Posted By Tzeronone
Script to solve second order (polynomial) interpolation
Currently I have awk command to do linear interpolation
awk '
{
P[$1]=$2
I[i++]=$1
}
END {
j=0; s=I[j]; t=I[j+1]
for(i=m;i<=n;i++) {
if(I[j+2] && i>t) {
...
Showing results 1 to 19 of 19

 
All times are GMT -4. The time now is 10:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy