<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>waman</author_name>
  <author_url>https://blog.hatena.ne.jp/waman/</author_url>
  <blog_title>倭算数理研究所</blog_title>
  <blog_url>https://wasan.hatenablog.com/</blog_url>
  <categories>
    <anon>Scala</anon>
  </categories>
  <description>spire を使ってみるシリーズ（目次）。 今回は Polynomial 型に定義されている代数としてのメソッドを見ていきます。 多項式はユークリッド環をなすので、加減乗法と余りのある除算が定義されています。この記事中のサンプルコードでは以下の import 文が書かれているものとします： import spire.math._ import spire.implicits._ 符号マイナス符号 (unary_-) は加法に関する逆元を返します。 まぁ、単に全ての係数の符号を変えた多項式ですけど。 val p = Polynomial(&quot;x^3 + 2x^2 + 3&quot;) // -, unary…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwasan.hatenablog.com%2Fentry%2F2017%2F08%2F12%2F075820&quot; title=&quot;spire で多項式 Polynomial を使ってみる (3) ： 代数としてのメソッド - 倭算数理研究所&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://images-fe.ssl-images-amazon.com/images/I/51TxxeeOvOL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-08-12 07:58:20</published>
  <title>spire で多項式 Polynomial を使ってみる (3) ： 代数としてのメソッド</title>
  <type>rich</type>
  <url>https://wasan.hatenablog.com/entry/2017/08/12/075820</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
