seems to be working with the following line:

fricas -nosman < file.input > /dev/null

then the file.out contains only the solutions and the extra stuff (system 
msgs) go /dev/null.

On Tuesday, November 23, 2021 at 2:47:05 PM UTC-6 Sid Andal wrote:

> When I try to run the code from the attachment I get the following error:
>
>
> fricas -nosman < file.input 
> Checking for foreign routines
> FRICAS="/usr/local/lib/fricas/target/x86_64-linux-gnu"
> spad-lib="/usr/local/lib/fricas/target/x86_64-linux-gnu/lib/libspad.so"
> foreign routines found
> openServer result -2
>                        FriCAS Computer Algebra System 
>                             Version: FriCAS 1.3.7
>                   Timestamp: Tue Jun 29 23:06:33 CEST 2021
>
> -----------------------------------------------------------------------------
>    Issue )copyright to view copyright notices.
>    Issue )summary for a summary of useful system commands.
>    Issue )quit to leave FriCAS and return to shell.
>
> -----------------------------------------------------------------------------
>  
> (1) -> 
> (2) -> (2) ->   Line   1: wsol(fp, a, b) == (_
>   Line   2:   x := (solve(a :: SquareMatrix(4, F), 
> b::Vector(F)).particular;
>            ...............................................................A
>   Error  A: syntax error at top level
>   Error  A: Improper syntax.
>    2 error(s) parsing 
>
> (2) ->   Line   1:   if x case "failed" then vector [0,0,0,0] else 
> x::Vector(F))
>            ............................................................A
>   Error  A: Improper syntax.
>    1 error(s) parsing 
>
> (2) -> (2) -> 
> (3) -> (3) ->    There are no library operations named wsol 
>       Use HyperDoc Browse or issue
>                                 )what op wsol
>       to learn if there is any operation containing " wsol " in its 
>       name.
>  
>    Cannot find a definition or applicable library operation named wsol 
>       with argument type(s) 
>                          File(List(PrimeField(19)))
>                          List(List(PositiveInteger))
>                             List(PositiveInteger)
>       
>       Perhaps you should use "@" to indicate the required return type, 
>       or "$" to specify which version of the function you need.
>
> (3) ->    There are no library operations named wsol 
>       Use HyperDoc Browse or issue
>                                 )what op wsol
>       to learn if there is any operation containing " wsol " in its 
>       name.
> ....
>
>
>
> On Tuesday, November 23, 2021 at 2:28:11 PM UTC-6 [email protected] 
> wrote:
>
>> > When I run the "fricas -nosman < file.input" I get the above output 
>> (the 
>> > sol vectors) and the extra stuff at the end; those numbers in 
>> parenthesizes 
>> > and arrows. 
>>
>> Are you sure? Note that I run 
>>
>> fricas -nosman < file.input 
>>
>> and you actually run 
>>
>> fricas -nosman < file.input > file.out 
>>
>> This is at least what you wrote in the first place. 
>> The sleep command is unnecessary. 
>>
>> Ralf 
>>
>> I've shortened you input file a bit... ;-) See attachement. 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/7fd685d8-c79d-4feb-b75b-7b634375f989n%40googlegroups.com.

Reply via email to