Search found 14 matches

Go to advanced search

by paulcheung
24 Feb 2023, 17:48
Forum: Helpdesk
Topic: Execute the command from a Text file directly
Replies: 3
Views: 8100

Re: Execute the command from a Text file directly

Ohhhhhh, I guess I just figured it out from your replies in other posts. I should type this in the text instead

Code: Select all

use application "polytope"; $p = new Polytope(POINTS=>[[1, 1, 2, 3,], [1, 4, 5, 2,], [1, 4, 5, 2,],]); print $p->FACETS;
Thank you anyway! :lol:
by paulcheung
24 Feb 2023, 17:26
Forum: Helpdesk
Topic: Execute the command from a Text file directly
Replies: 3
Views: 8100

Re: Execute the command from a Text file directly

Thank you very much for the reply! I am still having some trouble. When I type in script("example.txt"); It gives the error message. ERROR: Package "Polytope" does not exist at /home/myname/example.txt line 1. Yet, the two command lines work perfectly if I copy and paste them int...
by paulcheung
24 Feb 2023, 05:38
Forum: Helpdesk
Topic: Execute the command from a Text file directly
Replies: 3
Views: 8100

Execute the command from a Text file directly

Hi, I am an absolute newbie to programming. I wonder whether I can execute the commands from a Text file directly Suppose that has a text file that 1) is called: example.txt 2) is located at: \\wsl$\Ubuntu\home\myname\example.txt 3) has the following two lines of commands $p = new Polytope(POINTS=>[...
by paulcheung
28 Apr 2022, 18:38
Forum: Helpdesk
Topic: Load file from command line, elaborate, print output
Replies: 13
Views: 21035

Re: Load file from command line, elaborate, print output

You foresees both of my problems and you fixed it immediately! Thank you so much! I was like, why my txt looks so weird. The code you provide works like magic!! (I have no idea what those die , can't create file, / $!\n, mean..... This is something I would have never been able to figure out myself) ...
by paulcheung
28 Apr 2022, 17:37
Forum: Helpdesk
Topic: Load file from command line, elaborate, print output
Replies: 13
Views: 21035

Re: Load file from command line, elaborate, print output

I found it!!!!!!!!!!!!!!

\\wsl$\Ubuntu

I found this code from the following website

https://superuser.com/questions/1185033 ... -for-linux

This is what I need.......Thank GOOOOOOOOOOOOOOOOOOD!!!!!!!!!!!!!!

Also thank you for your patience.
by paulcheung
28 Apr 2022, 17:24
Forum: Helpdesk
Topic: Load file from command line, elaborate, print output
Replies: 13
Views: 21035

!!

Where can I see this txt file? I have no idea what my current working directory is. Your current working directory is where you started your polymake session, until you changed it explicitly using a "chdir" command. You must have entered the "polymake" command in a Linux shell. ...
by paulcheung
28 Apr 2022, 15:31
Forum: Helpdesk
Topic: Load file from command line, elaborate, print output
Replies: 13
Views: 21035

Re: Load file from command line, elaborate, print output

I tried to follow your instructions, but nothing came up..

My screenshot is attached. Thank you in advance!!
by paulcheung
28 Apr 2022, 15:10
Forum: Helpdesk
Topic: Load file from command line, elaborate, print output
Replies: 13
Views: 21035

Re: Load file from command line, elaborate, print output

Thank you so much for the prompt reply!!! I am very new to this terminal/command language. I would like to ask a very stupid question. After I typed, save_data($p->FACETS, "mypoly.txt"); Where can I see this txt file? I have no idea what my current working directory is..... Thank you!!!
by paulcheung
28 Apr 2022, 14:43
Forum: Helpdesk
Topic: Load file from command line, elaborate, print output
Replies: 13
Views: 21035

Re: Load file from command line, elaborate, print output

Can I ask a follow-up simple question?

When you save the files (say .txt or .poly), where can we find it from file directory? Thanks!
by paulcheung
09 Apr 2022, 04:32
Forum: General Discussion
Topic: My polymake is running for more than 12hours
Replies: 1
Views: 11477

My polymake is running for more than 12hours

Hi, I have a problem. I run my code. However, it has been 12 hours and there is not any result. I was trying to convert a polytope defined by inequalities into vertices. There are over 200 inequalities, which has 70 dimensions. However, most are 0 and 1. Is it normal that it took so long? I check my...

Go to advanced search