любая программа может показывать математические шаги для упрощения алгебры

Следующая команда будет работать

Команда

awk '{if(length($0) >8){print $0}}' file

Второй метод

#!/usr/bin/python
k=open('file','r')
for i in k:
    if len(i.strip()) > 8:
        print i,
0
14.05.2021, 13:48
1 ответ

Ну, Mathomatic немного делает то, что вы хотите:

$ mathomatic <<EOF
> 2(3x+5)
> simplify
> unfactor
> EOF
Mathomatic version 16.0.5
Copyright (C) 1987-2012 George Gesslein II.
200 equation spaces available in RAM; 2 megabytes per equation space.
ANSI color mode enabled; manage by typing "help color".
Anything done here is temporary, unless it is saved or redirected.

#1: 2*((3*x) + 5)


#1: (6*x) + 10


#1: (6*x) + 10


End of input.
ByeBye!! from Mathomatic.
1
28.07.2021, 11:32

Теги

Похожие вопросы