Skip to content

Symbolic Computing Day 11 #14

@xinyushi

Description

@xinyushi

Hello Professor,

For the exercises, here are my solutions:

  1. Function: x^(-2) and integrate from 1 to infinity
    sym.integrate((x)**(-2), (x, 1, oo))

  2. Find a value of x where sin(x) = cos(x)

from sympy.solvers import solve
from sympy import *
x = Symbol('x')
solve(sin(x)-cos(x),x) 

I found two typos in the lecture notes:

We can calso factor an expression that has been expanded:
"calso" should be ‘also’

The default precition is 10 decimal digits
“precition” should be “precision”

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions