WOLFRAM NOTEBOOK

계산과학(Computational Science) 전자교과서 | 제작 : 파주여고 이장훈 | 보급 : 수학생각
Ⅰ. 공학계산
1.2. 문자와 식의 계산
This document supports ClickToCopy of the code for Mathematica CDF Edition users.

1. 식의 계산

1.1. 전개

In[]:=
Expand[
5
(3x-y)
]

1.2. 인수분해

In[]:=
Factor[
5
x
-
5
y
]

1.3. 통분

In[]:=
Together
1
x
-
1
x+1
+1

1.4. 약분

In[]:=
Cancel
6
x
-1
2
x
-1

1.5. 간단히 정리

In[]:=
Simplify
6
x
-1
2
x
-1
In[]:=
FullSimplify[
x
4
-
x
2
-2]
  • Example-1.
    10
    (2+
    3
    )
    -
    10
    (2-
    3
    )
    .
  • Example-2.
    2
    a
    (a-b)(a-c)
    +
    2
    b
    (b-c)(b-a)
    +
    2
    c
    (c-a)(c-b)
    .
  • Example-3.
    (a-b)
    4
    c
    +(a+b)(
    4
    a
    -
    4
    b
    )=2(
    3
    a
    -
    3
    b
    )
    2
    c
    ,a,b,c.
  • 2. 치환과 등호

    2.1. 치환(=)

    In[]:=
    expr=
    -1-x+
    2
    x
    +
    3
    x
    (x+1)
    +7(x-1)
    2
    (x+1)
    ;
    In[]:=
    Expand[expr]
    In[]:=
    Factor[expr]

    2.2. 등호(==)

    In[]:=
    34
    In[]:=
    9
    2
    +
    9
    2
    10
    2

    2.3. 부등호

    In[]:=
    3>=5
    In[]:=
    {3>5,3>=5,3<5,3<=5}
  • Example-4.
    x=
    2-
    3
    2+
    3
    ,y=
    2+
    3
    2-
    3
    ,
    3
    x-y
    x+y
    .
  • Example-5.
    2023
    n,a
    a
    n
    .
  • 2.4. 문자와 치환의 유의사항

  • 2.4.1. 마지막 치환을 기억
  • In[]:=
    a=1+I;b=1-I;
    In[]:=
    a+b
    In[]:=
    a=1;b=-1;
    In[]:=
    a+b
  • 2.4.2. 치환된 문자의 삭제
  • In[]:=
    a+b
    Remove[a, b] (* 특정한 문자만 삭제 *)
    Remove[“Global`*”] (* 모든 문자들을 삭제 *)
    In[]:=
    Remove[a,b](**)
    In[]:=
    a+b
  • 2.4.3. 문자 사용의 유의점
  • In[]:=
    a=23(**)
    In[]:=
    b=23(**)
    In[]:=
    ab (**)
    In[]:=
    ab (**)
    In[]:=
    3b (**)
    In[]:=
    b3 (**)
  • Example-6.
    x=2-I,y=2+I,(
    2
    x
    -xy+1)(
    2
    y
    +xy+1).
  • Example-7.
    8
    x
    -2
    4
    x
    4
    y
    +
    8
    y
    .
  • 2.5. 문자에 값의 대입

    In[]:=
    x+y+1/.x1
    In[]:=
    x+y+1/.{x1,y->1}
  • Example-8.
    (
    2
    x
    -xy+1)(
    2
    y
    +xy+1)x=2-I,y=2+I.
  • Example-9. .
  • 3. 다이나믹한 계산

    In[]:=
    Expand[
    10
    (x+y)
    ]
    In[]:=
    Manipulate[Expand[
    n
    (x+y)
    ],{n,1,10,1}]
  • Example-10.
    Manipulate
    n
    x
    -1.,1n100
  • Example-11.
    n
    x
    -1-1,0,1?
  • 4. 문제해결능력

    4.1. (1)

    4.2. (2)

    END
    Wolfram Cloud

    You are using a browser not supported by the Wolfram Cloud

    Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


    I understand and wish to continue anyway »

    You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.